.pdfschau-state-dot {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-inline-end: .35rem;
    vertical-align: middle;
    border: 1px solid rgb(0 0 0 / 18%);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgb(255 255 255 / 95%);
}

.pdfschau-state-dot.is-published,
.pdfschau-status-cell.is-published {
    background-color: #198754;
}

.pdfschau-state-dot.is-unpublished,
.pdfschau-status-cell.is-unpublished {
    background-color: #ffc107;
}

.pdfschau-state-dot.is-trashed,
.pdfschau-status-cell.is-trashed {
    background-color: #dc3545;
}

.pdfschau-status-cell {
    width: 3rem;
    min-width: 3rem;
    max-width: 3rem;
    padding: 0;
}

.pdfschau-type-badge {
    display: inline-flex;
    width: 9.5rem;
    max-width: 9.5rem;
    min-height: 1.35rem;
    padding: .22rem .45rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.12;
    font-size: .72rem;
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* Keep one sortable/selectable table row per record. The actions belong to the
   same row in the DOM and sit below its data instead of occupying a column. */
.pdfschau-list-table tbody tr.pdfschau-row-with-actions {
    position: relative;
}

.pdfschau-list-table tbody tr.pdfschau-row-with-actions > td {
    padding-bottom: 3.7rem;
}

.pdfschau-row-actions {
    position: absolute;
    inset-inline: .5rem;
    bottom: .35rem;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .4rem;
    padding-top: .35rem;
    border-top: 1px solid var(--bs-border-color, #d5dbe2);
    white-space: nowrap;
    overflow-x: auto;
}

.pdfschau-row-actions > .btn {
    flex: 0 0 auto;
}


/* Joomla-native manual ordering: keep the drag handle column compact and visually quiet. */
.pdfschau-ordering-cell {
    width: 2.75rem;
    min-width: 2.75rem;
    max-width: 2.75rem;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    white-space: nowrap;
}

.pdfschau-ordering-cell .sortable-handler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* Administrator primary lists: keep Status and ID sorting controls visually separated. */
.pdfschau-list-table .pdfschau-status-cell {
    width: 5.75rem;
    min-width: 5.75rem;
    max-width: 5.75rem;
    padding-inline: .5rem;
    white-space: nowrap;
}

.pdfschau-list-table .pdfschau-id-cell {
    width: 4.5rem;
    min-width: 4.5rem;
    padding-inline: .5rem;
    white-space: nowrap;
}

.pdfschau-list-table .pdfschau-bulk-cell {
    width: 2.75rem;
    min-width: 2.75rem;
    text-align: center;
    vertical-align: middle;
}

.pdfschau-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin: .75rem 0;
}

/* Administrator document list: keep operational data visible without turning the table into a wide fixed grid. */
.pdfschau-documents-table .pdfschau-documenttype-cell {
    width: 1%;
    white-space: nowrap;
}

.pdfschau-documents-table .pdfschau-documenttype-cell .pdfschau-type-badge {
    width: auto;
    min-width: 4.75rem;
    max-width: 8.25rem;
}

.pdfschau-documents-table .pdfschau-file-cell {
    width: 1%;
    max-width: 11.5rem;
    white-space: nowrap;
}

.pdfschau-documents-table .pdfschau-file-name {
    display: inline-block;
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.pdfschau-access-cell {
    width: 1%;
    white-space: nowrap;
}

.pdfschau-access-control {
    min-width: 12.5rem;
    max-width: 16rem;
}

.pdfschau-access-control .form-select {
    min-width: 9.5rem;
}

.pdfschau-summary-label {
    width: 13.75rem;
}

/* Frontend dossier presentation */
.pdfschau-frontend .pdfschau-page-header,
.pdfschau-frontend .pdfschau-page-actions,
.pdfschau-frontend .pdfschau-section-heading,
.pdfschau-frontend .pdfschau-dossier-card-heading,
.pdfschau-frontend .pdfschau-dossier-hero-title,
.pdfschau-frontend .pdfschau-document-title-row {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.pdfschau-frontend .pdfschau-page-header,
.pdfschau-frontend .pdfschau-page-actions,
.pdfschau-frontend .pdfschau-section-heading {
    justify-content: space-between;
}

.pdfschau-frontend .pdfschau-page-header {
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.pdfschau-frontend .pdfschau-page-actions {
    margin-bottom: 1rem;
}

.pdfschau-frontend .pdfschau-back-link {
    text-decoration: none;
}

.pdfschau-frontend .pdfschau-dossier-list,
.pdfschau-frontend .pdfschau-document-list {
    display: grid;
    gap: .85rem;
}

.pdfschau-frontend .pdfschau-dossier-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 1rem 1.1rem;
    color: inherit;
    text-decoration: none;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-inline-start: .3rem solid var(--bs-primary, #0d6efd);
    border-radius: .45rem;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.pdfschau-frontend .pdfschau-dossier-card:hover,
.pdfschau-frontend .pdfschau-dossier-card:focus-visible {
    color: inherit;
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 .25rem .8rem rgb(0 0 0 / 8%);
    transform: translateY(-1px);
}

.pdfschau-frontend .pdfschau-dossier-card-main {
    min-width: 0;
}

.pdfschau-frontend .pdfschau-dossier-card-heading,
.pdfschau-frontend .pdfschau-dossier-hero-title,
.pdfschau-frontend .pdfschau-document-title-row {
    flex-wrap: wrap;
}

.pdfschau-frontend .pdfschau-dossier-description,
.pdfschau-frontend .pdfschau-dossier-hero-description {
    margin-top: .55rem;
    line-height: 1.55;
}

.pdfschau-frontend .pdfschau-dossier-card-count {
    display: flex;
    min-width: 5.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .4rem .7rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-radius: .4rem;
    text-align: center;
}

.pdfschau-frontend .pdfschau-dossier-card-count strong {
    font-size: 1.35rem;
    line-height: 1;
}

.pdfschau-frontend .pdfschau-dossier-card-count span {
    margin-top: .2rem;
    font-size: .75rem;
    color: var(--bs-secondary-color, #6c757d);
}

.pdfschau-frontend .pdfschau-dossier-hero {
    margin-bottom: 1.5rem;
    padding: 1.1rem 1.2rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .45rem;
}

.pdfschau-frontend .pdfschau-section-heading {
    margin-bottom: .8rem;
}

.pdfschau-frontend .pdfschau-document-card {
    display: grid;
    grid-template-columns: 7.25rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .45rem;
}

.pdfschau-frontend .pdfschau-document-date {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
    font-weight: 600;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-radius: .35rem;
    text-align: center;
}

.pdfschau-frontend .pdfschau-document-main {
    min-width: 0;
}

.pdfschau-frontend .pdfschau-document-meta-grid {
    display: grid;
    grid-template-columns: minmax(10rem, .8fr) minmax(14rem, 1.2fr);
    gap: .6rem 1.25rem;
    margin-top: .65rem;
}

.pdfschau-frontend .pdfschau-meta-label {
    display: block;
    margin-bottom: .15rem;
    color: var(--bs-secondary-color, #6c757d);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .025em;
}

.pdfschau-frontend .pdfschau-document-actions {
    min-width: 8rem;
    text-align: end;
}

@media (max-width: 767.98px) {
    .pdfschau-frontend .pdfschau-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .pdfschau-frontend .pdfschau-upload-button {
        align-self: flex-start;
    }

    .pdfschau-frontend .pdfschau-dossier-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .pdfschau-frontend .pdfschau-dossier-card-count {
        min-width: 0;
        flex-direction: row;
        gap: .4rem;
        justify-content: flex-start;
    }

    .pdfschau-frontend .pdfschau-dossier-card-count span {
        margin-top: 0;
    }

    .pdfschau-frontend .pdfschau-document-card {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .pdfschau-frontend .pdfschau-document-date {
        justify-content: flex-start;
        text-align: start;
    }

    .pdfschau-frontend .pdfschau-document-meta-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pdfschau-frontend .pdfschau-document-actions {
        min-width: 0;
        text-align: start;
    }
}

/* Frontend visual polish: presentation only */
.pdfschau-frontend {
    --pdfschau-card-radius: .65rem;
    --pdfschau-card-shadow: 0 .15rem .55rem rgb(0 0 0 / 5%);
    --pdfschau-card-shadow-hover: 0 .45rem 1.15rem rgb(0 0 0 / 9%);
}

.pdfschau-frontend .pdfschau-page-header h1,
.pdfschau-frontend .pdfschau-dossier-hero h1,
.pdfschau-frontend .pdfschau-section-heading h2,
.pdfschau-frontend .pdfschau-document-title-row h3 {
    line-height: 1.15;
}

.pdfschau-frontend .pdfschau-page-header p {
    max-width: 46rem;
    line-height: 1.5;
}

.pdfschau-frontend .pdfschau-upload-button,
.pdfschau-frontend .pdfschau-page-actions .btn {
    font-weight: 600;
}

.pdfschau-frontend .pdfschau-back-link {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    text-underline-offset: .15em;
}

.pdfschau-frontend .pdfschau-dossier-card,
.pdfschau-frontend .pdfschau-dossier-hero,
.pdfschau-frontend .pdfschau-document-card {
    border-radius: var(--pdfschau-card-radius);
    box-shadow: var(--pdfschau-card-shadow);
}

.pdfschau-frontend .pdfschau-dossier-card {
    min-height: 4.75rem;
    padding: 1.05rem 1.2rem;
}

.pdfschau-frontend .pdfschau-dossier-card:focus-visible {
    outline: .18rem solid var(--bs-primary, #0d6efd);
    outline-offset: .15rem;
}

.pdfschau-frontend .pdfschau-dossier-card:hover,
.pdfschau-frontend .pdfschau-dossier-card:focus-visible {
    box-shadow: var(--pdfschau-card-shadow-hover);
}

.pdfschau-frontend .pdfschau-dossier-card-heading h2,
.pdfschau-frontend .pdfschau-dossier-hero-title h1,
.pdfschau-frontend .pdfschau-document-title-row h3 {
    font-weight: 600;
}

.pdfschau-frontend .pdfschau-dossier-card-count {
    border: 1px solid var(--bs-border-color, #dee2e6);
}

.pdfschau-frontend .pdfschau-dossier-hero {
    border-inline-start: .3rem solid var(--bs-primary, #0d6efd);
}

.pdfschau-frontend .pdfschau-section-heading {
    padding-bottom: .45rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.pdfschau-frontend .pdfschau-document-card {
    transition: border-color .15s ease, box-shadow .15s ease;
}

.pdfschau-frontend .pdfschau-document-card:hover {
    border-color: var(--bs-secondary-border-subtle, var(--bs-border-color, #dee2e6));
    box-shadow: var(--pdfschau-card-shadow-hover);
}

.pdfschau-frontend .pdfschau-document-date {
    min-height: 3.5rem;
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
}

.pdfschau-frontend .pdfschau-document-meta-grid > div {
    min-width: 0;
}

.pdfschau-frontend .pdfschau-meta-label {
    margin-bottom: .2rem;
    line-height: 1.2;
}

.pdfschau-frontend .pdfschau-document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: center;
    justify-content: flex-end;
}

.pdfschau-frontend .pdfschau-document-actions .btn {
    min-width: 6.25rem;
    font-weight: 600;
}

.pdfschau-frontend .pdfschau-document-actions > .text-muted {
    max-width: 11rem;
    font-size: .875rem;
    line-height: 1.35;
}

.pdfschau-frontend .badge {
    line-height: 1.15;
    vertical-align: middle;
}

@media (max-width: 767.98px) {
    .pdfschau-frontend .pdfschau-page-actions {
        flex-wrap: wrap;
    }

    .pdfschau-frontend .pdfschau-dossier-card,
    .pdfschau-frontend .pdfschau-dossier-hero,
    .pdfschau-frontend .pdfschau-document-card {
        border-radius: .55rem;
    }

    .pdfschau-frontend .pdfschau-dossier-card,
    .pdfschau-frontend .pdfschau-document-card {
        padding: .85rem;
    }

    .pdfschau-frontend .pdfschau-dossier-card-count {
        width: fit-content;
    }

    .pdfschau-frontend .pdfschau-document-date {
        min-height: 0;
    }

    .pdfschau-frontend .pdfschau-document-actions {
        justify-content: flex-start;
    }

    .pdfschau-frontend .pdfschau-document-actions .btn {
        flex: 1 1 7.5rem;
    }
}

/* Frontend document reading / download flow */
.pdfschau-frontend .pdfschau-document-detail {
    overflow: hidden;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: var(--pdfschau-card-radius, .65rem);
    background: var(--bs-body-bg, #fff);
    box-shadow: var(--pdfschau-card-shadow, 0 .15rem .55rem rgb(0 0 0 / 5%));
}

.pdfschau-frontend .pdfschau-document-detail-header {
    padding: 1.25rem 1.35rem;
    border-inline-start: .3rem solid var(--bs-primary, #0d6efd);
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.pdfschau-frontend .pdfschau-document-detail-header h1 {
    line-height: 1.15;
    font-weight: 600;
}

.pdfschau-frontend .pdfschau-document-detail-description {
    max-width: 52rem;
    margin-top: .65rem;
    line-height: 1.5;
}

.pdfschau-frontend .pdfschau-document-order-name {
    margin-top: .42rem;
    color: var(--bs-secondary-color, #6c757d);
    font-size: .92rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.pdfschau-frontend .pdfschau-document-card .pdfschau-document-order-name {
    margin-top: .28rem;
    font-size: .82rem;
}

.pdfschau-frontend .pdfschau-document-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--bs-border-color, #dee2e6);
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.pdfschau-frontend .pdfschau-document-detail-fact {
    min-width: 0;
    padding: 1rem 1.35rem;
    background: var(--bs-body-bg, #fff);
    overflow-wrap: anywhere;
}

.pdfschau-frontend .pdfschau-document-detail-fact strong {
    font-weight: 600;
}

.pdfschau-frontend .pdfschau-document-dossier-links {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .75rem;
}

.pdfschau-frontend .pdfschau-document-detail-file small {
    display: block;
    margin-top: .25rem;
}

.pdfschau-frontend .pdfschau-document-reader-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.35rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.pdfschau-frontend .pdfschau-document-reader-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .15rem;
}

.pdfschau-frontend .pdfschau-document-reader-copy strong {
    font-weight: 600;
}

.pdfschau-frontend .pdfschau-document-reader-panel .pdfschau-document-actions {
    display: flex;
    min-width: 0;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
    text-align: end;
}

.pdfschau-frontend .pdfschau-document-reader-panel .pdfschau-document-actions .btn {
    min-width: 8.5rem;
}

@media (max-width: 767.98px) {
    .pdfschau-frontend .pdfschau-document-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pdfschau-frontend .pdfschau-document-reader-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .pdfschau-frontend .pdfschau-document-reader-panel .pdfschau-document-actions {
        justify-content: flex-start;
        text-align: start;
    }

    .pdfschau-frontend .pdfschau-document-reader-panel .pdfschau-document-actions .btn {
        flex: 1 1 9rem;
    }
}

/* PDFSchau Viewer V1 - Joomla Dialog shell + PDF.js rendering */
.pdfschau-frontend .pdfschau-document-reader-panel.pdfschau-document-reader-panel-viewer {
    display: block;
    padding: 1.25rem 1.35rem;
}

.pdfschau-viewer-entry {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: .65rem;
}

.pdfschau-viewer-entry-heading {
    max-width: 42rem;
    line-height: 1.35;
}

.pdfschau-viewer-entry-heading .pdfschau-document-order-name {
    display: block;
    margin-top: .2rem;
}

.pdfschau-viewer-entry.is-compact {
    width: auto;
    align-items: stretch;
    gap: .5rem;
}

.pdfschau-viewer-entry.is-compact .pdfschau-viewer-entry-heading {
    display: none;
}

.pdfschau-viewer-entry.is-compact .pdfschau-viewer-entry-actions {
    justify-content: stretch;
}

.pdfschau-viewer-entry.is-compact .btn {
    width: 100%;
}

.pdfschau-cover-link {
    position: relative;
    display: inline-flex;
    max-width: min(100%, 24rem);
    align-items: center;
    color: inherit;
    text-decoration: none;
    border-radius: .35rem;
    outline: 0;
}

.pdfschau-cover-stage {
    display: grid;
    width: clamp(12rem, 31vw, 22rem);
    max-width: calc(100vw - 5rem);
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .3rem 0 0 .3rem;
    background: #fff;
    box-shadow: 0 .35rem 1rem rgb(0 0 0 / 12%);
}

.pdfschau-cover-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    background: #fff;
}

.pdfschau-cover-placeholder {
    display: grid;
    width: 100%;
    aspect-ratio: 210 / 297;
    place-content: center;
    gap: .6rem;
    padding: 1.25rem;
    color: var(--bs-secondary-color, #6c757d);
    text-align: center;
    background: linear-gradient(145deg, var(--bs-tertiary-bg, #f8f9fa), #fff);
}

.pdfschau-cover-placeholder.is-fallback {
    opacity: .9;
}

.pdfschau-cover-placeholder-mark {
    display: block;
    font-size: clamp(2rem, 7vw, 3.75rem);
    font-weight: 700;
    letter-spacing: .06em;
}

.pdfschau-cover-open-tab {
    display: grid;
    min-width: 2.2rem;
    min-height: 5.9rem;
    place-items: center;
    padding: .55rem .35rem;
    border-radius: 0 .3rem .3rem 0;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: lowercase;
    writing-mode: vertical-rl;
    text-orientation: upright;
    background: var(--bs-primary, #0d6efd);
    box-shadow: 0 .25rem .7rem rgb(0 0 0 / 18%);
}

.pdfschau-cover-link:hover .pdfschau-cover-stage,
.pdfschau-cover-link:focus-visible .pdfschau-cover-stage {
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 .5rem 1.35rem rgb(0 0 0 / 18%);
}

.pdfschau-cover-link:focus-visible {
    outline: .18rem solid var(--bs-primary, #0d6efd);
    outline-offset: .2rem;
}

.pdfschau-viewer-entry-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

joomla-dialog.pdfschau-viewer-dialog {
    --pdfschau-viewer-edge: clamp(.75rem, 1.5vw, 1.5rem);
}

joomla-dialog.pdfschau-viewer-dialog > dialog {
    width: fit-content !important;
    max-width: calc(100vw - (2 * var(--pdfschau-viewer-edge))) !important;
    height: fit-content !important;
    max-height: calc(100dvh - (2 * var(--pdfschau-viewer-edge))) !important;
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

joomla-dialog.pdfschau-viewer-dialog > dialog::backdrop {
    background: rgb(4 8 12 / 72%);
}

joomla-dialog.pdfschau-viewer-dialog > dialog > .joomla-dialog-container {
    width: fit-content;
    height: fit-content;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

joomla-dialog.pdfschau-viewer-dialog .joomla-dialog-header,
joomla-dialog.pdfschau-viewer-dialog .joomla-dialog-footer {
    display: none !important;
}

joomla-dialog.pdfschau-viewer-dialog .joomla-dialog-body {
    margin: 0;
    padding: 0 !important;
    overflow: visible;
    background: transparent;
}

.pdfschau-viewer-runtime {
    --pdfschau-viewer-shell-bg: #15191e;
    --pdfschau-viewer-stage-bg: #20262c;
    --pdfschau-viewer-shell-border: rgb(255 255 255 / 14%);
    --pdfschau-viewer-login-accent: #0077a8;

    position: relative;
    display: grid;
    width: var(--pdfschau-viewer-frame-width, min(32rem, calc(100vw - 4rem)));
    height: var(--pdfschau-viewer-frame-height, min(26rem, calc(100dvh - 3rem)));
    max-width: calc(100vw - 4rem);
    max-height: calc(100dvh - 6rem);
    margin: auto;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: visible;
    border-radius: .45rem;
    color: #f8f9fa;
    background: var(--pdfschau-viewer-shell-bg);
    box-shadow: 0 .8rem 2.4rem rgb(0 0 0 / 42%);
}

.pdfschau-viewer-runtime.is-authenticated {
    --pdfschau-viewer-shell-border: rgb(0 119 168 / 76%);

    box-shadow:
        0 0 0 2px rgb(0 119 168 / 72%),
        0 .8rem 2.4rem rgb(0 0 0 / 42%);
}

.pdfschau-viewer-runtime.is-authenticated .pdfschau-viewer-header,
.pdfschau-viewer-runtime.is-authenticated .pdfschau-viewer-close-tab {
    background: var(--pdfschau-viewer-login-accent);
}

.pdfschau-viewer-header {
    z-index: 7;
    display: flex;
    min-width: 0;
    min-height: 3.35rem;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    padding: .5rem .7rem .5rem .9rem;
    border-bottom: 1px solid var(--pdfschau-viewer-shell-border);
    color: #f8f9fa;
    background: var(--pdfschau-viewer-shell-bg);
}

.pdfschau-viewer-title {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    opacity: 1;
    font-size: clamp(.95rem, 1.4vw, 1.15rem);
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdfschau-viewer-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .35rem;
}

.pdfschau-viewer-header-action {
    display: inline-flex;
    min-height: 2.15rem;
    align-items: center;
    justify-content: center;
    padding: .32rem .58rem;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: .35rem;
    color: #f8f9fa;
    font: inherit;
    font-size: .78rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    background: rgb(255 255 255 / 7%);
    cursor: pointer;
}

.pdfschau-viewer-header-action:hover,
.pdfschau-viewer-header-action:focus-visible {
    border-color: rgb(255 255 255 / 56%);
    color: #fff;
    text-decoration: none;
    background: rgb(255 255 255 / 15%);
}

.pdfschau-viewer-header-action.is-close {
    width: 2.15rem;
    padding-inline: 0;
    font-size: 1.2rem;
}

.pdfschau-viewer-runtime:fullscreen {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    background: #11151a;
}

.pdfschau-viewer-runtime:fullscreen .pdfschau-viewer-stage-shell {
    width: 100%;
    height: 100%;
}

.pdfschau-viewer-runtime:fullscreen .pdfschau-viewer-stage {
    width: 100%;
    height: 100%;
}

.pdfschau-viewer-stage-shell {
    position: relative;
    width: var(--pdfschau-viewer-stage-width, 100%);
    height: var(--pdfschau-viewer-stage-height, 100%);
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--pdfschau-viewer-stage-bg);
}

.pdfschau-viewer-outline {
    position: absolute;
    z-index: 12;
    top: .75rem;
    bottom: .75rem;
    left: .75rem;
    display: flex;
    width: min(25rem, calc(100% - 1.5rem));
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: .45rem;
    color: #f8f9fa;
    background: rgb(21 25 30 / 97%);
    box-shadow: 0 .55rem 1.8rem rgb(0 0 0 / 46%);
}

.pdfschau-viewer-outline[hidden] {
    display: none;
}

.pdfschau-viewer-outline-header {
    display: flex;
    min-height: 3rem;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .6rem .7rem .6rem .9rem;
    border-bottom: 1px solid rgb(255 255 255 / 15%);
}

.pdfschau-viewer-outline-close {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: .35rem;
    color: #fff;
    font: inherit;
    font-size: 1.1rem;
    line-height: 1;
    background: rgb(255 255 255 / 7%);
    cursor: pointer;
}

.pdfschau-viewer-outline-close:hover,
.pdfschau-viewer-outline-close:focus-visible {
    border-color: rgb(255 255 255 / 56%);
    background: rgb(255 255 255 / 15%);
}

.pdfschau-viewer-outline-list {
    min-height: 0;
    padding: .55rem .4rem .75rem;
    overflow: auto;
    overscroll-behavior: contain;
}

.pdfschau-viewer-outline-level {
    display: grid;
    gap: .08rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pdfschau-viewer-outline-level .pdfschau-viewer-outline-level {
    margin-inline-start: .9rem;
    padding-inline-start: .55rem;
    border-inline-start: 1px solid rgb(255 255 255 / 13%);
}

.pdfschau-viewer-outline-entry {
    display: block;
    width: 100%;
    padding: .42rem .55rem;
    border: 0;
    border-radius: .3rem;
    color: rgb(248 249 250 / 92%);
    font: inherit;
    font-size: .87rem;
    line-height: 1.25;
    text-align: start;
    text-decoration: none;
    background: transparent;
}

button.pdfschau-viewer-outline-entry,
a.pdfschau-viewer-outline-entry {
    cursor: pointer;
}

button.pdfschau-viewer-outline-entry:hover,
button.pdfschau-viewer-outline-entry:focus-visible,
a.pdfschau-viewer-outline-entry:hover,
a.pdfschau-viewer-outline-entry:focus-visible {
    color: #fff;
    text-decoration: none;
    background: rgb(255 255 255 / 10%);
}

.pdfschau-viewer-outline-entry.is-bold {
    font-weight: 700;
}

.pdfschau-viewer-outline-entry.is-italic {
    font-style: italic;
}

.pdfschau-viewer-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: contain;
    outline: 0;
    background:
        radial-gradient(circle at 50% 42%, rgb(255 255 255 / 5%), transparent 46%),
        var(--pdfschau-viewer-stage-bg);
}

.pdfschau-viewer-runtime.is-zoomed .pdfschau-viewer-stage {
    overflow: auto;
    cursor: grab;
    touch-action: none;
    scrollbar-gutter: stable both-edges;
}

.pdfschau-viewer-runtime.is-zoomed .pdfschau-viewer-stage.is-panning {
    cursor: grabbing;
}

.pdfschau-viewer-nav-edge {
    position: absolute;
    z-index: 8;
    top: 50%;
    display: grid;
    width: 2.8rem;
    height: 6rem;
    place-items: center;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 26%);
    border-radius: .55rem;
    color: #f8f9fa;
    font: inherit;
    font-size: 2.35rem;
    line-height: 1;
    background: rgb(21 25 30 / 78%);
    box-shadow: 0 .3rem 1rem rgb(0 0 0 / 24%);
    cursor: pointer;
    touch-action: manipulation;
    transform: translateY(-50%);
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.pdfschau-viewer-nav-edge.is-previous {
    left: .45rem;
}

.pdfschau-viewer-nav-edge.is-next {
    right: .45rem;
}

.pdfschau-viewer-nav-edge:hover:not(:disabled),
.pdfschau-viewer-nav-edge:focus-visible:not(:disabled) {
    border-color: rgb(255 255 255 / 62%);
    background: rgb(21 25 30 / 94%);
}

.pdfschau-viewer-nav-edge:focus-visible {
    outline: .16rem solid #fff;
    outline-offset: .12rem;
}

.pdfschau-viewer-nav-edge:disabled {
    opacity: .22;
    cursor: default;
}

.pdfschau-viewer-pages {
    display: flex;
    width: max-content;
    min-width: 100%;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    perspective: 100rem;
    transform-origin: center;
}

.pdfschau-viewer-pages.is-spread {
    align-items: center;
}

.pdfschau-viewer-page {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    cursor: default;
    background: #fff;
    box-shadow: 0 .45rem 1.4rem rgb(0 0 0 / 42%);
    transition: box-shadow .15s ease, outline-color .15s ease;
}

.pdfschau-viewer-page.is-error {
    min-width: 15rem;
    min-height: 20rem;
    padding: 1.25rem;
    color: #842029;
    text-align: center;
    background: #f8d7da;
}

.pdfschau-viewer-page-canvas {
    display: block;
    max-width: none;
    background: #fff;
}

.pdfschau-pdf-link-layer {
    position: absolute;
    z-index: 2;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.pdfschau-pdf-link-hotspot {
    position: absolute;
    display: block;
    padding: 0;
    border: 0;
    border-radius: .08rem;
    color: inherit;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
}

.pdfschau-pdf-link-hotspot:hover,
.pdfschau-pdf-link-hotspot:focus-visible {
    outline: 2px solid rgb(0 119 168 / 72%);
    outline-offset: -2px;
    background: rgb(0 119 168 / 8%);
}

.pdfschau-viewer-page-actions-overlay {
    position: absolute;
    z-index: 10;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.pdfschau-viewer-page-actions {
    position: absolute;
    z-index: 1;
    top: .55rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    pointer-events: auto;
}

.pdfschau-viewer-page-actions.is-outer-left {
    left: .55rem;
}

.pdfschau-viewer-page-actions.is-outer-right {
    right: .55rem;
}

.pdfschau-viewer-page-action {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 78%);
    border-radius: 50%;
    color: #fff;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    background: rgb(21 25 30 / 84%);
    box-shadow: 0 .18rem .55rem rgb(0 0 0 / 38%);
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.pdfschau-viewer-page-rotate {
    font-size: 1.55rem;
}

.pdfschau-viewer-page-copy {
    position: relative;
}

.pdfschau-viewer-page-copy::before,
.pdfschau-viewer-page-copy::after {
    position: absolute;
    width: .78rem;
    height: .96rem;
    border: .11rem solid currentColor;
    border-radius: .08rem;
    content: '';
}

.pdfschau-viewer-page-copy::before {
    transform: translate(.18rem, .16rem);
}

.pdfschau-viewer-page-copy::after {
    transform: translate(-.16rem, -.14rem);
}

.pdfschau-viewer-page-mark {
    position: absolute;
    top: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.pdfschau-viewer-page-actions.is-outer-left .pdfschau-viewer-page-mark {
    left: 2.9rem;
}

.pdfschau-viewer-page-actions.is-outer-right .pdfschau-viewer-page-mark {
    right: 2.9rem;
}

.pdfschau-viewer-page-mark.is-active,
.pdfschau-viewer-page-mark[aria-pressed='true'] {
    border-color: #fff;
    background: rgb(139 112 0 / 94%);
    box-shadow: 0 0 0 .16rem rgb(255 225 0 / 24%), 0 .18rem .55rem rgb(0 0 0 / 38%);
}

.pdfschau-viewer-page-action:hover:not(:disabled),
.pdfschau-viewer-page-action:focus-visible:not(:disabled) {
    border-color: #fff;
    background: rgb(21 25 30 / 96%);
    transform: scale(1.06);
}

.pdfschau-viewer-page-action:disabled {
    opacity: .55;
    cursor: wait;
}

.pdfschau-viewer-page-action:focus-visible {
    outline: .16rem solid var(--bs-primary, #0d6efd);
    outline-offset: .12rem;
}

.pdfschau-viewer-page-loading {
    display: grid;
    min-width: 14rem;
    min-height: 19rem;
    place-items: center;
    padding: 1rem;
    color: #6c757d;
    background: #f8f9fa;
}

.pdfschau-viewer-page-indicator {
    position: absolute;
    z-index: 7;
    top: 50%;
    left: 50%;
    min-width: clamp(5.5rem, 14vw, 9.5rem);
    padding: .32em .5em;
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: .24em;
    color: #fff;
    font-size: clamp(2.9rem, 7vw, 5.8rem);
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    background: rgb(21 25 30 / 76%);
    box-shadow: 0 .4rem 1.4rem rgb(0 0 0 / 32%);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity .12s ease;
}

.pdfschau-viewer-page-indicator.is-visible {
    opacity: 1;
}

.pdfschau-viewer-loading,
.pdfschau-viewer-error {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: grid;
    place-content: center;
    gap: .75rem;
    padding: 1.5rem;
    text-align: center;
    background: rgb(21 25 30 / 82%);
}

.pdfschau-viewer-error {
    background: rgb(21 25 30 / 94%);
}

.pdfschau-viewer-spinner {
    width: 2rem;
    height: 2rem;
    margin-inline: auto;
    border: .2rem solid rgb(255 255 255 / 28%);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pdfschau-spin .8s linear infinite;
}

@keyframes pdfschau-spin {
    to { transform: rotate(360deg); }
}

.pdfschau-viewer-toolbar {
    z-index: 6;
    display: flex;
    min-height: 3.4rem;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .5rem .75rem;
    border-top: 1px solid var(--pdfschau-viewer-shell-border);
    color: #f8f9fa;
    background: var(--pdfschau-viewer-shell-bg);
}


.pdfschau-viewer-toolbar-group {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.pdfschau-viewer-toolbar-separator {
    width: 1px;
    height: 1.8rem;
    margin-inline: .18rem;
    background: rgb(255 255 255 / 22%);
}

.pdfschau-viewer-zoom-label {
    margin-inline-end: .08rem;
    color: rgb(248 249 250 / 92%);
    font-size: .86rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.pdfschau-viewer-zoom-value {
    min-width: 4.15rem;
    height: 2.35rem;
    padding-inline: .55rem;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: .35rem;
    color: #f8f9fa;
    font: inherit;
    font-size: .88rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    background: rgb(255 255 255 / 7%);
}

.pdfschau-viewer-zoom-value:hover,
.pdfschau-viewer-zoom-value:focus-visible {
    border-color: rgb(255 255 255 / 56%);
    background: rgb(255 255 255 / 15%);
}

.pdfschau-viewer-zoom-value:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.pdfschau-viewer-tool[hidden] {
    display: none;
}

.pdfschau-viewer-tool.is-text-tool {
    width: auto;
    min-width: 2.75rem;
    padding-inline: .55rem;
    font-size: .78rem;
    font-weight: 600;
}

.pdfschau-viewer-tool {
    display: grid;
    width: 2.5rem;
    height: 2.35rem;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: .35rem;
    color: inherit;
    font-size: 1.35rem;
    line-height: 1;
    background: rgb(255 255 255 / 7%);
}

.pdfschau-viewer-tool:hover:not(:disabled),
.pdfschau-viewer-tool:focus-visible:not(:disabled) {
    border-color: rgb(255 255 255 / 56%);
    background: rgb(255 255 255 / 15%);
}

.pdfschau-viewer-tool:disabled {
    opacity: .35;
}

.pdfschau-viewer-tool.is-page-boundary,
.pdfschau-viewer-tool.is-page-step {
    width: 2rem;
    min-width: 2rem;
    padding-inline: .3rem;
    font-size: 1rem;
    font-weight: 700;
}

.pdfschau-viewer-tool.is-magnifier-toggle {
    position: relative;
}

.pdfschau-viewer-tool.is-magnifier-toggle::before {
    width: .82rem;
    height: .82rem;
    border: .13rem solid currentColor;
    border-radius: 50%;
    content: '';
    transform: translate(-.08rem, -.08rem);
}

.pdfschau-viewer-tool.is-magnifier-toggle::after {
    position: absolute;
    width: .62rem;
    height: .13rem;
    border-radius: 999px;
    content: '';
    background: currentColor;
    transform: translate(.48rem, .48rem) rotate(45deg);
    transform-origin: center;
}

.pdfschau-viewer-tool.is-magnifier-toggle.is-active,
.pdfschau-viewer-tool.is-magnifier-toggle[aria-pressed='true'] {
    border-color: rgb(255 255 255 / 72%);
    color: #fff;
    background: rgb(13 110 253 / 74%);
}

.pdfschau-viewer-runtime.is-magnifier .pdfschau-viewer-page {
    cursor: crosshair;
}

.pdfschau-viewer-runtime.is-magnifier .pdfschau-viewer-page-action {
    cursor: pointer;
}

.pdfschau-viewer-magnifier {
    position: absolute;
    z-index: 12;
    width: clamp(14rem, 24vw, 20rem);
    height: clamp(14rem, 24vw, 20rem);
    overflow: hidden;
    border: .2rem solid rgb(255 255 255 / 96%);
    border-radius: 50%;
    pointer-events: none;
    background: #fff;
    box-shadow:
        0 .8rem 2rem rgb(0 0 0 / 48%),
        inset 0 0 0 1px rgb(0 0 0 / 18%);
    transform: translate(-50%, -50%);
}

.pdfschau-viewer-magnifier::after {
    position: absolute;
    inset: 50% auto auto 50%;
    width: .34rem;
    height: .34rem;
    border: 1px solid rgb(0 0 0 / 42%);
    border-radius: 50%;
    content: '';
    background: rgb(255 255 255 / 58%);
    transform: translate(-50%, -50%);
}

.pdfschau-viewer-magnifier[hidden] {
    display: none;
}

.pdfschau-viewer-magnifier-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.pdfschau-viewer-status {
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: 4.35rem;
    max-width: calc(100% - 2rem);
    padding: .55rem .8rem;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: .45rem;
    color: #f8f9fa;
    font-size: .86rem;
    text-align: center;
    background: rgb(21 25 30 / 94%);
    box-shadow: 0 .35rem 1rem rgb(0 0 0 / 35%);
    transform: translateX(-50%);
}

.pdfschau-viewer-status.is-error {
    border-color: rgb(255 193 7 / 70%);
}

.pdfschau-viewer-status[hidden] {
    display: none;
}

.pdfschau-viewer-print-frame {
    position: fixed;
    width: 1px;
    height: 1px;
    inset: auto auto 0 0;
    border: 0;
    opacity: .01;
    pointer-events: none;
}

.pdfschau-viewer-page-control {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-inline: .2rem;
    font-variant-numeric: tabular-nums;
}

.pdfschau-viewer-page-control input {
    width: 4.2rem;
    height: 2.35rem;
    border: 1px solid rgb(255 255 255 / 30%) !important;
    border-radius: .35rem;
    color: #f8f9fa !important;
    text-align: center;
    background: #20262c !important;
    color-scheme: dark;
    appearance: textfield;
}

.pdfschau-viewer-page-control input::-webkit-inner-spin-button,
.pdfschau-viewer-page-control input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.pdfschau-viewer-page-control input:focus {
    outline: .14rem solid var(--bs-primary, #0d6efd);
    outline-offset: .08rem;
    background: #252d35 !important;
}

.pdfschau-viewer-close-tab {
    position: absolute;
    z-index: 10;
    top: 50%;
    right: -1.95rem;
    display: grid;
    min-height: 7.2rem;
    place-items: center;
    padding: .65rem .4rem;
    border: 0;
    border-radius: 0 .35rem .35rem 0;
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: lowercase;
    writing-mode: vertical-rl;
    text-orientation: upright;
    transform: translateY(-50%);
    background: var(--bs-primary, #0d6efd);
    box-shadow: 0 .25rem .7rem rgb(0 0 0 / 25%);
}

.pdfschau-viewer-close-tab:hover,
.pdfschau-viewer-close-tab:focus-visible {
    filter: brightness(1.08);
}

@media (max-width: 767.98px) {
    .pdfschau-frontend .pdfschau-document-reader-panel.pdfschau-document-reader-panel-viewer {
        padding: 1rem;
    }

    .pdfschau-cover-stage {
        width: min(78vw, 19rem);
    }

    joomla-dialog.pdfschau-viewer-dialog {
        --pdfschau-viewer-edge: .35rem;
    }

    joomla-dialog.pdfschau-viewer-dialog > dialog {
        max-width: calc(100vw - .7rem) !important;
        max-height: calc(100dvh - .7rem) !important;
    }

    .pdfschau-viewer-runtime {
        max-width: calc(100vw - .7rem);
        max-height: calc(100dvh - 3.5rem);
    }

    .pdfschau-viewer-header {
        min-height: 3rem;
        gap: .45rem;
        padding: .4rem .45rem .4rem .65rem;
    }

    .pdfschau-viewer-title {
        font-size: .92rem;
    }

    .pdfschau-viewer-header-actions {
        gap: .2rem;
    }

    .pdfschau-viewer-header-action {
        min-height: 2rem;
        padding: .28rem .42rem;
        font-size: .7rem;
    }

    .pdfschau-viewer-header-action.is-close {
        width: 2rem;
    }

    .pdfschau-viewer-pages {
        gap: .75rem;
        padding: .75rem 1rem;
    }

    .pdfschau-viewer-toolbar {
        gap: .2rem;
        padding: .4rem .45rem;
    }


    .pdfschau-viewer-toolbar-group {
        gap: .2rem;
    }

    .pdfschau-viewer-zoom-label {
        margin-inline-end: 0;
        font-size: .74rem;
    }

    .pdfschau-viewer-toolbar-separator {
        margin-inline: .08rem;
    }

    .pdfschau-viewer-zoom-value {
        min-width: 3.65rem;
        height: 2.2rem;
        padding-inline: .35rem;
        font-size: .78rem;
    }

    .pdfschau-viewer-tool {
        width: 2.25rem;
        height: 2.2rem;
    }

    .pdfschau-viewer-page-control {
        gap: .25rem;
        margin-inline: 0;
    }

    .pdfschau-viewer-page-control input {
        width: 3.55rem;
        height: 2.2rem;
    }

    .pdfschau-viewer-close-tab {
        top: 30%;
        right: 0;
        min-height: 6.3rem;
        padding-inline: .32rem;
        border-radius: .35rem 0 0 .35rem;
    }
}

@media (max-width: 479.98px) {
    .pdfschau-viewer-outline {
        top: .45rem;
        bottom: .45rem;
        left: .45rem;
        width: calc(100% - .9rem);
    }

    .pdfschau-viewer-tool.is-text-tool {
        min-width: 2.6rem;
        padding-inline: .42rem;
        font-size: .72rem;
    }

    .pdfschau-viewer-toolbar {
        flex-wrap: wrap;
        row-gap: .3rem;
    }

    .pdfschau-viewer-toolbar-separator {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pdfschau-viewer-page-indicator {
        transition: none;
    }

    .pdfschau-viewer-spinner {
        animation: none;
    }
}

/* Administrator Joomla/PDFSchau compatibility warning */
.pdfschau-compatibility-alert {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    overflow: auto;
    place-items: center;
    padding: clamp(1.25rem, 4vw, 4rem);
    color: #fff;
    background: #a40000;
}

.pdfschau-compatibility-alert-panel {
    width: min(100%, 64rem);
    padding: clamp(1.5rem, 4vw, 3.5rem);
    border: .2rem solid rgb(255 255 255 / 90%);
    border-radius: .8rem;
    text-align: center;
    background: rgb(70 0 0 / 72%);
    box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 45%);
}

.pdfschau-compatibility-alert-symbol {
    display: grid;
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto 1rem;
    place-items: center;
    border: .25rem solid currentColor;
    border-radius: 50%;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.pdfschau-compatibility-alert-kicker {
    margin: 0 0 .65rem;
    font-size: clamp(.9rem, 1.5vw, 1.1rem);
    font-weight: 800;
    letter-spacing: .015em;
}

.pdfschau-compatibility-alert h1 {
    margin: 0 0 1rem;
    color: inherit;
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
}

.pdfschau-compatibility-alert-lead,
.pdfschau-compatibility-alert-action {
    max-width: 52rem;
    margin: 0 auto 1.5rem;
    font-size: clamp(1rem, 2vw, 1.3rem);
}

.pdfschau-compatibility-alert-versions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin: 1.75rem 0;
}

.pdfschau-compatibility-alert-versions div {
    padding: 1rem;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: .5rem;
    background: rgb(0 0 0 / 18%);
}

.pdfschau-compatibility-alert-versions dt {
    margin-bottom: .35rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .015em;
}

.pdfschau-compatibility-alert-versions dd {
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 800;
}

.pdfschau-compatibility-alert-emergency {
    max-width: 52rem;
    margin: -.5rem auto 1.5rem;
    font-size: .95rem;
    font-weight: 700;
}

.pdfschau-compatibility-alert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
}

.pdfschau-compatibility-alert-actions form {
    margin: 0;
}

@media (max-width: 767.98px) {
    .pdfschau-compatibility-alert-versions {
        grid-template-columns: 1fr;
    }
}

/* PDF.js 6.3.289 text layer subset (Apache-2.0) + PDFSchau annotations. */
.pdfschau-viewer-page.is-marking {
    outline: .12rem solid rgb(255 225 0 / 42%);
    outline-offset: -.12rem;
}

.pdfschau-viewer-text-layer {
    --min-font-size: 1;
    --text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size));
    --min-font-size-inv: calc(1 / var(--min-font-size));
    position: absolute;
    z-index: 3;
    inset: 0;
    overflow: clip;
    color-scheme: only light;
    text-align: initial;
    line-height: 1;
    letter-spacing: normal;
    word-spacing: normal;
    text-size-adjust: none;
    forced-color-adjust: none;
    transform-origin: 0 0;
    caret-color: CanvasText;
}

.pdfschau-viewer-text-layer :is(span, br) {
    position: absolute;
    color: transparent;
    white-space: pre;
    cursor: text;
    user-select: text;
    transform-origin: 0% 0%;
}

.pdfschau-viewer-text-layer > :not(.markedContent),
.pdfschau-viewer-text-layer .markedContent span:not(.markedContent) {
    z-index: 1;
    --font-height: 0;
    --scale-x: 1;
    --rotate: 0deg;
    font-size: calc(var(--text-scale-factor) * var(--font-height));
    transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));
}

.pdfschau-viewer-text-layer .markedContent {
    display: contents;
}

.pdfschau-viewer-text-layer span[role='img'] {
    cursor: default;
    user-select: none;
}

.pdfschau-viewer-text-layer ::selection {
    color: transparent;
    background: rgb(13 110 253 / 32%);
}

.pdfschau-viewer-text-layer br::selection {
    background: transparent;
}

.pdfschau-viewer-annotation-layer {
    position: absolute;
    z-index: 4;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.pdfschau-viewer-annotation-highlight {
    position: absolute;
    border-radius: .12rem;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.pdfschau-viewer-annotation-highlight.is-highlight {
    background: rgb(255 225 0 / 36%);
    box-shadow: inset 0 0 0 1px rgb(155 128 0 / 18%);
}

.pdfschau-viewer-annotation-highlight.is-comment {
    background: rgb(255 166 0 / 28%);
    box-shadow: inset 0 0 0 1px rgb(150 78 0 / 20%);
}

.pdfschau-viewer-annotation-marker {
    position: absolute;
    z-index: 1;
    display: grid;
    width: 1.45rem;
    height: 1.45rem;
    place-items: center;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 86%);
    border-radius: 50%;
    color: #fff;
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 .12rem .35rem rgb(0 0 0 / 32%);
}

.pdfschau-viewer-annotation-marker.is-highlight {
    background: rgb(139 112 0 / 92%);
}

.pdfschau-viewer-annotation-marker.is-comment {
    background: rgb(174 85 0 / 94%);
}

.pdfschau-viewer-selection-menu {
    position: absolute;
    z-index: 17;
    display: flex;
    gap: .25rem;
    padding: .28rem;
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: .45rem;
    background: rgb(21 25 30 / 97%);
    box-shadow: 0 .45rem 1.2rem rgb(0 0 0 / 42%);
    transform: translate(-50%, -100%);
}

.pdfschau-viewer-selection-menu[hidden] {
    display: none;
}

.pdfschau-viewer-selection-menu button,
.pdfschau-viewer-annotation-panel button {
    min-height: 2rem;
    padding: .32rem .55rem;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: .32rem;
    color: #f8f9fa;
    font: inherit;
    font-size: .8rem;
    line-height: 1;
    background: rgb(255 255 255 / 8%);
    cursor: pointer;
}

.pdfschau-viewer-selection-menu button:hover,
.pdfschau-viewer-selection-menu button:focus-visible,
.pdfschau-viewer-annotation-panel button:hover,
.pdfschau-viewer-annotation-panel button:focus-visible {
    border-color: rgb(255 255 255 / 58%);
    background: rgb(255 255 255 / 16%);
}

.pdfschau-viewer-annotation-panel {
    position: absolute;
    z-index: 18;
    top: 50%;
    left: 50%;
    display: flex;
    width: min(26rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    flex-direction: column;
    gap: .65rem;
    padding: .9rem;
    overflow: auto;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: .55rem;
    color: #f8f9fa;
    background: rgb(21 25 30 / 98%);
    box-shadow: 0 .8rem 2rem rgb(0 0 0 / 52%);
    transform: translate(-50%, -50%);
}

.pdfschau-viewer-annotation-panel-close {
    position: absolute;
    top: .45rem;
    right: .45rem;
    width: 2rem;
    min-height: 2rem !important;
    padding: 0 !important;
    font-size: 1.15rem !important;
}

.pdfschau-viewer-annotation-quote {
    max-height: 9rem;
    padding: .55rem .65rem;
    overflow: auto;
    border-inline-start: .22rem solid rgb(255 193 7 / 78%);
    color: #dfe4e8;
    font-size: .85rem;
    line-height: 1.4;
    background: rgb(255 255 255 / 6%);
    white-space: pre-wrap;
}

.pdfschau-viewer-annotation-comment {
    color: #fff;
    line-height: 1.45;
    white-space: pre-wrap;
}

.pdfschau-viewer-annotation-panel textarea {
    width: 100%;
    min-height: 7rem;
    padding: .6rem .7rem;
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: .4rem;
    color: #15191e;
    font: inherit;
    line-height: 1.4;
    resize: vertical;
    background: #fff;
}

.pdfschau-viewer-annotation-panel-actions {
    display: flex;
    justify-content: flex-end;
    gap: .4rem;
}

.pdfschau-viewer-annotation-panel-actions .is-primary {
    border-color: rgb(13 110 253 / 90%);
    background: rgb(13 110 253 / 84%);
}

.pdfschau-viewer-annotation-panel-actions .is-danger {
    border-color: rgb(220 53 69 / 80%);
    background: rgb(220 53 69 / 68%);
}

.pdfschau-viewer-runtime.is-magnifier .pdfschau-viewer-text-layer {
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .pdfschau-viewer-selection-menu {
        max-width: calc(100% - 1rem);
        flex-wrap: wrap;
        justify-content: center;
    }

    .pdfschau-viewer-annotation-panel {
        width: calc(100% - 1rem);
    }
}

/* Dashboard navigation and PDF upload dropzone */
.pdfschau-dashboard-tile {
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.pdfschau-dashboard-tile:hover {
    border-color: var(--bs-primary, #0d6efd) !important;
    box-shadow: 0 .25rem .75rem rgb(0 0 0 / 8%);
    transform: translateY(-1px);
}

.pdfschau-dashboard-tile:focus-visible {
    outline: .18rem solid var(--bs-primary, #0d6efd);
    outline-offset: .15rem;
}

.pdfschau-dropzone {
    border: .125rem dashed var(--bs-border-color, #ced4da);
    border-radius: .5rem;
    padding: 1rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.pdfschau-dropzone-prompt {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    margin-bottom: .75rem;
    text-align: center;
}

.pdfschau-dropzone.is-dragover {
    border-color: var(--bs-primary, #0d6efd);
    background: var(--bs-primary-bg-subtle, #cfe2ff);
    box-shadow: 0 0 0 .2rem rgb(13 110 253 / 15%);
}

.pdfschau-dropzone.is-invalid {
    border-color: var(--bs-danger, #dc3545);
}

.pdfschau-dropzone .form-control {
    margin-inline: auto;
    max-width: 42rem;
}

.pdfschau-dropzone-selection {
    min-height: 1.25rem;
    margin-top: .4rem;
    text-align: center;
}

.pdfschau-dropzone-feedback {
    margin-top: .75rem;
    margin-bottom: 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

/* PDFSchau 6.1.3.1074 - system status dark-mode refinement */
.pdfschau-systemstatus {
    --pdfschau-sys-bg: var(--bs-body-bg, var(--body-bg, #ffffff));
    --pdfschau-sys-text: var(--bs-body-color, var(--body-color, #212529));
    --pdfschau-sys-muted: var(--bs-secondary-color, #6c757d);
    --pdfschau-sys-surface: color-mix(in srgb, var(--pdfschau-sys-bg) 92%, #ffffff 8%);
    --pdfschau-sys-surface-strong: color-mix(in srgb, var(--pdfschau-sys-bg) 86%, #ffffff 14%);
    --pdfschau-sys-border: var(--bs-border-color, var(--border-color, #dee2e6));
    --pdfschau-sys-shadow: 0 .15rem .5rem rgb(0 0 0 / 6%);
    --pdfschau-sys-green: var(--bs-success, #198754);
    --pdfschau-sys-yellow: var(--bs-warning, #ffc107);
    --pdfschau-sys-red: var(--bs-danger, #dc3545);
    color: var(--pdfschau-sys-text);
}

[data-bs-theme="dark"] .pdfschau-systemstatus,
body[data-bs-theme="dark"] .pdfschau-systemstatus,
html[data-bs-theme="dark"] .pdfschau-systemstatus {
    --pdfschau-sys-bg: #0b1220;
    --pdfschau-sys-text: #e7edf7;
    --pdfschau-sys-muted: #a7b4c8;
    --pdfschau-sys-surface: #111a2b;
    --pdfschau-sys-surface-strong: #162235;
    --pdfschau-sys-border: rgba(173, 190, 214, .18);
    --pdfschau-sys-shadow: 0 .35rem .9rem rgb(0 0 0 / 24%);
}

.pdfschau-systemstatus-overall,
.pdfschau-systemstatus-card {
    background: var(--pdfschau-sys-surface);
    color: var(--pdfschau-sys-text);
    border: 1px solid var(--pdfschau-sys-border);
    border-radius: .75rem;
    box-shadow: var(--pdfschau-sys-shadow);
}

.pdfschau-systemstatus-overall {
    background: var(--pdfschau-sys-surface-strong);
    display: grid;
    grid-template-columns: minmax(10rem, 15rem) 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-left-width: .4rem;
}

.pdfschau-systemstatus-overall.is-green,
.pdfschau-legacy-gate.is-green {
    border-left-color: var(--pdfschau-sys-green);
}

.pdfschau-systemstatus-overall.is-yellow,
.pdfschau-legacy-gate.is-yellow {
    border-left-color: var(--pdfschau-sys-yellow);
}

.pdfschau-systemstatus-overall.is-red,
.pdfschau-legacy-gate.is-red {
    border-left-color: var(--pdfschau-sys-red);
}

.pdfschau-systemstatus-overall-value {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .02em;
}

.pdfschau-systemstatus-kicker {
    margin-bottom: .35rem;
    color: var(--pdfschau-sys-muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .015em;
}

.pdfschau-systemstatus-card {
    padding: 1.15rem 1.25rem;
}

.pdfschau-systemstatus-card-value {
    margin-bottom: .8rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
}

.pdfschau-systemstatus-dl {
    display: grid;
    grid-template-columns: minmax(6rem, auto) 1fr;
    gap: .35rem .8rem;
    margin: 0;
}

.pdfschau-systemstatus-dl dt,
.pdfschau-systemstatus-dl dd {
    margin: 0;
}

.pdfschau-systemstatus-dl dt {
    color: var(--pdfschau-sys-muted);
    font-weight: 600;
}

.pdfschau-systemstatus-dl-wide {
    grid-template-columns: minmax(10rem, auto) 1fr;
    margin-bottom: 1rem;
}

.pdfschau-systemstatus-path {
    overflow-wrap: anywhere;
    color: var(--pdfschau-sys-muted);
    font-family: var(--bs-font-monospace, monospace);
    font-size: .85rem;
}

.pdfschau-systemstatus-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--pdfschau-sys-text);
    --bs-table-border-color: var(--pdfschau-sys-border);
}

.pdfschau-systemstatus-table thead th {
    color: var(--pdfschau-sys-muted);
    font-size: .75rem;
    letter-spacing: .015em;
}

.pdfschau-legacy-gate {
    border-left-width: .4rem;
}

.pdfschau-legacy-gate-count {
    margin-top: .5rem;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1;
}

@media (max-width: 767.98px) {
    .pdfschau-systemstatus-overall {
        grid-template-columns: 1fr;
        gap: .75rem;
    }

    .pdfschau-systemstatus-dl,
    .pdfschau-systemstatus-dl-wide {
        grid-template-columns: 1fr;
        gap: .1rem;
    }

    .pdfschau-systemstatus-dl dd {
        margin-bottom: .45rem;
    }
}


.pdfschau-systemstatus .alert {
    border-color: var(--pdfschau-sys-border);
}

[data-bs-theme="dark"] .pdfschau-systemstatus .alert,
body[data-bs-theme="dark"] .pdfschau-systemstatus .alert,
html[data-bs-theme="dark"] .pdfschau-systemstatus .alert {
    color: var(--pdfschau-sys-text);
    background: var(--pdfschau-sys-surface-strong);
}

[data-bs-theme="dark"] .pdfschau-systemstatus .btn-outline-dark,
body[data-bs-theme="dark"] .pdfschau-systemstatus .btn-outline-dark,
html[data-bs-theme="dark"] .pdfschau-systemstatus .btn-outline-dark {
    color: var(--pdfschau-sys-text);
    border-color: var(--pdfschau-sys-border);
}

[data-bs-theme="dark"] .pdfschau-systemstatus .btn-outline-dark:hover,
body[data-bs-theme="dark"] .pdfschau-systemstatus .btn-outline-dark:hover,
html[data-bs-theme="dark"] .pdfschau-systemstatus .btn-outline-dark:hover {
    color: #0b1220;
    background: #dbe7f7;
    border-color: #dbe7f7;
}

/* PDFSchau 6.1.3.1134 - visible provenance, credits and third-party notices. */
.pdfschau-about {
    --pdfschau-about-navy: #073b70;
    --pdfschau-about-blue: #087fc2;
    --pdfschau-about-cyan: #0aa9cf;
    --pdfschau-about-mint: #64e2ad;
    --pdfschau-about-green: #148b5c;
    --pdfschau-about-bg: var(--bs-body-bg, #fff);
    --pdfschau-about-text: var(--bs-body-color, #172033);
    --pdfschau-about-muted: var(--bs-secondary-color, #667085);
    --pdfschau-about-border: var(--bs-border-color, #dbe2ea);
    --pdfschau-about-surface: color-mix(in srgb, var(--pdfschau-about-bg) 96%, #eaf5fb 4%);
    --pdfschau-about-surface-blue: color-mix(in srgb, var(--pdfschau-about-bg) 91%, #d8efff 9%);
    max-width: 88rem;
    margin: 0 auto;
    color: var(--pdfschau-about-text);
}

/* PDFSchau 6.1.3.1140 - neutral source administration and readable import headings. */
.pdfschau-import {
  --pdfschau-import-navy: #073d73;
  --pdfschau-import-blue: #087db8;
  --pdfschau-import-cyan: #07acd1;
  --pdfschau-import-mint: #5ee3b1;
  color: #10223a;
  margin: 0 auto;
  max-width: 1480px;
}

.pdfschau-import-hero {
  align-items: center;
  background: linear-gradient(115deg, var(--pdfschau-import-navy), var(--pdfschau-import-blue) 68%, #078d99);
  border-radius: 1.1rem;
  box-shadow: 0 1.1rem 2.8rem rgba(8, 61, 115, .16);
  color: #fff;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  overflow: hidden;
  padding: 2rem 2.25rem;
  position: relative;
}

.pdfschau-import-hero::after {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  content: "";
  height: 19rem;
  position: absolute;
  right: -5rem;
  top: -8rem;
  width: 19rem;
}

.pdfschau-import-hero h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 3rem);
  margin: .15rem 0 .45rem;
}

.pdfschau-import-hero p {
  margin: 0;
  max-width: 760px;
}

.pdfschau-import-kicker {
  color: #008c62;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: none;
}

.pdfschau-import-hero .pdfschau-import-kicker {
  color: var(--pdfschau-import-mint);
}

.pdfschau-import-state {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: .85rem;
  display: grid;
  min-width: 250px;
  padding: 1rem 1.15rem;
  position: relative;
  z-index: 1;
}

.pdfschau-import-state strong {
  color: #fff;
  font-size: 1.05rem;
}

.pdfschau-import-state span {
  color: rgba(255, 255, 255, .82);
  font-size: .86rem;
  margin-top: .25rem;
}

.pdfschau-import-state.is-ready {
  border-left: .35rem solid var(--pdfschau-import-mint);
}

.pdfschau-import-state.is-error {
  border-left: .35rem solid #ff7b7b;
}

.pdfschau-import-stats {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  margin: 1rem 0;
}

.pdfschau-import-stats article {
  background: #fff;
  border: 1px solid #d7e3ef;
  border-radius: .85rem;
  display: grid;
  padding: 1rem 1.15rem;
}

.pdfschau-import-stats strong {
  color: var(--pdfschau-import-navy);
  font-size: 1.75rem;
  line-height: 1;
}

.pdfschau-import-stats span {
  color: #607086;
  font-size: .82rem;
  font-weight: 700;
  margin-top: .35rem;
}

.pdfschau-import-stats .is-failed strong {
  color: #b42318;
}

.pdfschau-import-guardrails,
.pdfschau-import-execution,
.pdfschau-import-panel,
.pdfschau-import-footer {
  background: #fff;
  border: 1px solid #d7e3ef;
  border-radius: .95rem;
}

.pdfschau-import-execution {
  align-items: center;
  border-left: .35rem solid var(--pdfschau-import-mint);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, 1.25fr);
  margin-top: 1rem;
  padding: 1.2rem 1.4rem;
}

.pdfschau-import-execution h3 {
  color: #10223a;
  margin: .2rem 0 .3rem;
}

.pdfschau-import-execution p {
  color: #607086;
  margin: 0;
}

.pdfschau-import-execution dl {
  align-items: stretch;
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0;
}

.pdfschau-import-execution dl div {
  background: #f2f7fb;
  border: 1px solid #d7e3ef;
  border-radius: .65rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: .75rem;
}

.pdfschau-import-execution dt {
  align-items: flex-end;
  color: #607086;
  display: flex;
  font-size: .72rem;
  font-weight: 800;
  hyphens: none;
  line-height: 1.25;
  min-height: 3.75em;
  overflow-wrap: normal;
  text-transform: none;
  word-break: normal;
}

.pdfschau-import-execution dd {
  color: var(--pdfschau-import-navy);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  margin: .45rem 0 0;
}

.pdfschau-import-guardrails {
  align-items: start;
  border-top: .25rem solid var(--pdfschau-import-cyan);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr);
  padding: 1.3rem 1.5rem;
}

.pdfschau-import-guardrails h3,
.pdfschau-import-panel h3 {
  color: #10223a;
  margin: .2rem 0 0;
}

.pdfschau-import-guardrails ul {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding-left: 1.15rem;
}

.pdfschau-import-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1rem;
}

/* PDFSchau 6.1.3.1150 - explicit cleanroom gate and full-width import tables. */
.pdfschau-cleanroom-hero {
  background: linear-gradient(115deg, #5f1b22, #8f2732 68%, #a33a32);
}

.pdfschau-cleanroom-confirm {
  border-left-color: #b42318;
}

.pdfschau-cleanroom-confirm .form-control {
  max-width: 32rem;
}

.pdfschau-import-panel {
  overflow: hidden;
  padding: 1.25rem;
}

.pdfschau-import-panel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.pdfschau-import-panel td small {
  color: #68778b;
  display: block;
}

.pdfschau-import-empty {
  background: #f2f7fb;
  border-left: .3rem solid var(--pdfschau-import-cyan);
  margin: 0;
  padding: 1rem;
}

.pdfschau-import-footer {
  border-left: .35rem solid #0a9767;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
}

.pdfschau-import-footer p {
  margin: .25rem 0 0;
}

@media (max-width: 1600px) {
  .pdfschau-import-execution {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .pdfschau-import-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdfschau-import-grid,
  .pdfschau-import-guardrails,
  .pdfschau-import-execution {
    grid-template-columns: 1fr;
  }

  .pdfschau-import-execution dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

[data-bs-theme="dark"] .pdfschau-import,
body[data-bs-theme="dark"] .pdfschau-import,
html[data-bs-theme="dark"] .pdfschau-import {
  color: #e7edf7;
}

[data-bs-theme="dark"] .pdfschau-import-stats article,
[data-bs-theme="dark"] .pdfschau-import-guardrails,
[data-bs-theme="dark"] .pdfschau-import-execution,
[data-bs-theme="dark"] .pdfschau-import-panel,
[data-bs-theme="dark"] .pdfschau-import-footer,
body[data-bs-theme="dark"] .pdfschau-import-stats article,
body[data-bs-theme="dark"] .pdfschau-import-guardrails,
body[data-bs-theme="dark"] .pdfschau-import-execution,
body[data-bs-theme="dark"] .pdfschau-import-panel,
body[data-bs-theme="dark"] .pdfschau-import-footer,
html[data-bs-theme="dark"] .pdfschau-import-stats article,
html[data-bs-theme="dark"] .pdfschau-import-guardrails,
html[data-bs-theme="dark"] .pdfschau-import-execution,
html[data-bs-theme="dark"] .pdfschau-import-panel,
html[data-bs-theme="dark"] .pdfschau-import-footer {
  background: #111a2b;
  border-color: rgb(173 190 214 / 20%);
}

[data-bs-theme="dark"] .pdfschau-import-guardrails h3,
[data-bs-theme="dark"] .pdfschau-import-execution h3,
[data-bs-theme="dark"] .pdfschau-import-panel h3,
body[data-bs-theme="dark"] .pdfschau-import-guardrails h3,
body[data-bs-theme="dark"] .pdfschau-import-execution h3,
body[data-bs-theme="dark"] .pdfschau-import-panel h3,
html[data-bs-theme="dark"] .pdfschau-import-guardrails h3,
html[data-bs-theme="dark"] .pdfschau-import-execution h3,
html[data-bs-theme="dark"] .pdfschau-import-panel h3 {
  color: #e7edf7;
}

[data-bs-theme="dark"] .pdfschau-import-execution dl div,
body[data-bs-theme="dark"] .pdfschau-import-execution dl div,
html[data-bs-theme="dark"] .pdfschau-import-execution dl div {
  background: #12243a;
  border-color: rgb(173 190 214 / 20%);
}

[data-bs-theme="dark"] .pdfschau-import-execution dd,
body[data-bs-theme="dark"] .pdfschau-import-execution dd,
html[data-bs-theme="dark"] .pdfschau-import-execution dd {
  color: #e7edf7;
}

[data-bs-theme="dark"] .pdfschau-import-empty,
body[data-bs-theme="dark"] .pdfschau-import-empty,
html[data-bs-theme="dark"] .pdfschau-import-empty {
  background: #12243a;
}

@media (max-width: 700px) {
  .pdfschau-import-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 1.4rem;
  }

  .pdfschau-import-state {
    min-width: 0;
  }

  .pdfschau-import-guardrails ul,
  .pdfschau-import-stats {
    grid-template-columns: 1fr;
  }

  .pdfschau-import-execution dl {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdfschau-import *,
  .pdfschau-import *::before,
  .pdfschau-import *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

[data-bs-theme="dark"] .pdfschau-about,
body[data-bs-theme="dark"] .pdfschau-about,
html[data-bs-theme="dark"] .pdfschau-about {
    --pdfschau-about-bg: #0b1220;
    --pdfschau-about-text: #e7edf7;
    --pdfschau-about-muted: #a7b4c8;
    --pdfschau-about-border: rgb(173 190 214 / 20%);
    --pdfschau-about-surface: #111a2b;
    --pdfschau-about-surface-blue: #12243a;
}

.pdfschau-about-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-top: .3rem solid var(--pdfschau-about-mint);
    border-radius: 1.1rem;
    background: linear-gradient(120deg, var(--pdfschau-about-navy), var(--pdfschau-about-blue) 72%, #078c9a);
    color: #fff;
    box-shadow: 0 1rem 2.5rem rgb(4 46 87 / 16%);
}

.pdfschau-about-hero::before,
.pdfschau-about-hero::after {
    position: absolute;
    content: "";
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 50%;
    pointer-events: none;
}

.pdfschau-about-hero::before {
    top: -7rem;
    right: 5rem;
    width: 18rem;
    height: 18rem;
}

.pdfschau-about-hero::after {
    right: -2rem;
    bottom: -8rem;
    width: 21rem;
    height: 21rem;
}

.pdfschau-about-hero > * {
    position: relative;
    z-index: 1;
}

.pdfschau-about-kicker,
.pdfschau-about-person-label {
    margin-bottom: .55rem;
    color: var(--pdfschau-about-green);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .015em;
}

.pdfschau-about-hero .pdfschau-about-kicker {
    color: var(--pdfschau-about-mint);
}

.pdfschau-about-wordmark {
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 5.25rem);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.045em;
}

.pdfschau-about-wordmark strong {
    color: var(--pdfschau-about-mint);
}

.pdfschau-about-lead {
    max-width: 56rem;
    margin: 1.15rem 0 0;
    color: rgb(255 255 255 / 88%);
    font-size: 1.08rem;
}

.pdfschau-about-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.35rem;
}

.pdfschau-about-meta span {
    padding: .42rem .72rem;
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: 999px;
    background: rgb(255 255 255 / 10%);
    font-size: .82rem;
    font-weight: 650;
}

.pdfschau-about-people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    margin-top: 1.15rem;
}

.pdfschau-about-person,
.pdfschau-about-principle,
.pdfschau-about-platform,
.pdfschau-about-third,
.pdfschau-about-footer {
    border: 1px solid var(--pdfschau-about-border);
    border-radius: .9rem;
    background: var(--pdfschau-about-surface);
    box-shadow: 0 .4rem 1.2rem rgb(20 43 67 / 7%);
}

.pdfschau-about-person {
    position: relative;
    overflow: hidden;
    padding: 1.45rem 1.55rem;
    border-left-width: .35rem;
}

.pdfschau-about-person.is-owner {
    border-left-color: var(--pdfschau-about-green);
}

.pdfschau-about-person.is-schorsch {
    border-left-color: var(--pdfschau-about-cyan);
    background: var(--pdfschau-about-surface-blue);
}

.pdfschau-about-person h3,
.pdfschau-about-principle h3,
.pdfschau-about-platform h3,
.pdfschau-about-third h3 {
    margin: 0 0 .7rem;
    color: var(--pdfschau-about-text);
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.pdfschau-about-person-role {
    color: var(--pdfschau-about-muted);
    font-weight: 700;
}

.pdfschau-about-copyright {
    margin-bottom: 0;
    color: var(--pdfschau-about-green);
    font-weight: 800;
}

.pdfschau-about-principle {
    display: grid;
    grid-template-columns: minmax(15rem, .75fr) minmax(20rem, 1.25fr);
    gap: 1.25rem 2rem;
    margin-top: 1.15rem;
    padding: 1.55rem;
    border-top: .3rem solid var(--pdfschau-about-cyan);
}

.pdfschau-about-principle blockquote {
    margin: 0;
    padding-left: 1.15rem;
    border-left: .25rem solid var(--pdfschau-about-mint);
    color: var(--pdfschau-about-text);
    font-size: 1.08rem;
    font-weight: 650;
}

.pdfschau-about-principle ul {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem 1.5rem;
    margin: 0;
    padding-left: 1.25rem;
}

.pdfschau-about-platform,
.pdfschau-about-third {
    margin-top: 1.15rem;
    padding: 1.55rem;
}

.pdfschau-about-platform {
    position: relative;
    overflow: hidden;
    padding-right: min(22rem, 32%);
}

.pdfschau-about-platform-name {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    color: var(--pdfschau-about-blue);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 850;
    letter-spacing: -.06em;
    opacity: .16;
}

.pdfschau-about-third-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
    margin-top: 1.25rem;
}

.pdfschau-about-third-card {
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--pdfschau-about-border);
    border-radius: .75rem;
    background: var(--pdfschau-about-bg);
}

.pdfschau-about-third-topline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .8rem;
}

.pdfschau-about-third-card h4 {
    margin: 0 0 .55rem;
    color: var(--pdfschau-about-text);
    font-size: 1.1rem;
}

.pdfschau-about-third-card p,
.pdfschau-about-third-card dd {
    color: var(--pdfschau-about-muted);
}

.pdfschau-about-third-card dl {
    display: grid;
    grid-template-columns: minmax(8rem, auto) 1fr;
    gap: .25rem .7rem;
    margin: .8rem 0;
    font-size: .88rem;
}

.pdfschau-about-third-card dt,
.pdfschau-about-third-card dd {
    margin: 0;
}

.pdfschau-about-license-links {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.pdfschau-about-license-links a {
    display: inline-flex;
    padding: .3rem .55rem;
    border: 1px solid color-mix(in srgb, var(--pdfschau-about-blue) 55%, var(--pdfschau-about-border) 45%);
    border-radius: .35rem;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.pdfschau-about-license-links a:hover,
.pdfschau-about-license-links a:focus-visible {
    color: #fff;
    background: var(--pdfschau-about-blue);
}

.pdfschau-about-footer {
    margin-top: 1.15rem;
    padding: 1.2rem 1.4rem;
    border-left: .35rem solid var(--pdfschau-about-green);
}

.pdfschau-about-footer p {
    margin: .35rem 0 0;
    color: var(--pdfschau-about-muted);
}

@media (max-width: 900px) {
    .pdfschau-about-people,
    .pdfschau-about-third-grid,
    .pdfschau-about-principle {
        grid-template-columns: 1fr;
    }

    .pdfschau-about-principle ul {
        grid-template-columns: 1fr;
    }

    .pdfschau-about-platform {
        padding-right: 1.55rem;
    }

    .pdfschau-about-platform-name {
        position: static;
        transform: none;
        margin: .75rem 0;
        font-size: 2.8rem;
    }
}

@media (max-width: 600px) {
    .pdfschau-about-hero {
        flex-direction: column;
    }

    .pdfschau-about-third-card dl {
        grid-template-columns: 1fr;
    }
}


/* Article integration V1: Joomla-native modal wizard shell. */
.pdfschau-articlewizard {
    max-width: 78rem;
    margin: 0 auto;
    padding: clamp(1rem, 2.5vw, 2rem);
}

.pdfschau-wizard-header {
    margin-bottom: 1.25rem;
}

.pdfschau-wizard-header h1 {
    margin: .2rem 0 .35rem;
    font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.pdfschau-wizard-header p {
    margin: 0;
    color: var(--body-color, inherit);
    opacity: .78;
}

.pdfschau-wizard-kicker {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .015em;
    opacity: .62;
}

.pdfschau-wizard-progress {
    display: flex;
    gap: .45rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    overflow-x: auto;
}

.pdfschau-wizard-step {
    display: inline-flex;
    min-width: max-content;
    padding: .55rem .75rem;
    align-items: center;
    gap: .35rem;
    border: 1px solid var(--border-color, rgb(127 127 127 / 30%));
    border-radius: .45rem;
    font-size: .9rem;
    font-weight: 600;
}

.pdfschau-wizard-step.is-active {
    border-color: var(--link-color, #0d6efd);
    box-shadow: inset 0 0 0 1px var(--link-color, #0d6efd);
}

.pdfschau-wizard-step.is-done {
    border-color: #198754;
}

.pdfschau-wizard-step.is-locked {
    opacity: .48;
}

.pdfschau-wizard-panel {
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid var(--border-color, rgb(127 127 127 / 30%));
    border-radius: .65rem;
    background: var(--body-bg, transparent);
}

.pdfschau-wizard-panel h2 {
    margin-top: 0;
}

.pdfschau-wizard-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.pdfschau-wizard-choice {
    display: grid;
    min-height: 10rem;
    padding: 1.35rem;
    align-content: center;
    gap: .55rem;
    border: 1px solid var(--border-color, rgb(127 127 127 / 30%));
    border-radius: .65rem;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.pdfschau-wizard-choice:hover,
.pdfschau-wizard-choice:focus-visible {
    border-color: var(--link-color, #0d6efd);
    color: inherit;
    box-shadow: 0 .35rem 1rem rgb(0 0 0 / 10%);
    transform: translateY(-1px);
}

.pdfschau-wizard-choice > [class^="icon-"] {
    font-size: 1.65rem;
}

.pdfschau-wizard-choice strong {
    font-size: 1.08rem;
}

.pdfschau-wizard-choice span:last-child {
    opacity: .76;
}

.pdfschau-wizard-placeholder {
    margin-top: 1rem;
    padding: 1.25rem;
    border: 1px dashed var(--border-color, rgb(127 127 127 / 35%));
    border-radius: .55rem;
}

.pdfschau-wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
}

@media (max-width: 700px) {
    .pdfschau-wizard-choice-grid {
        grid-template-columns: 1fr;
    }
}

/* PDFSchau 6.1.3.1074 - Article Integration V1 search and compact wizard layout. */
.pdfschau-articlewizard.is-compact {
    min-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pdfschau-wizard-search-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(15rem, .85fr);
    gap: 1rem;
    margin-top: 1rem;
}

.pdfschau-wizard-search-field {
    min-width: 0;
}

.pdfschau-wizard-live-status {
    min-height: 1.25rem;
    margin-top: .45rem;
    font-size: .86rem;
    opacity: .72;
}

.pdfschau-wizard-live-status[data-tone="error"] {
    color: var(--danger, #dc3545);
    opacity: 1;
}

.pdfschau-wizard-live-status[data-tone="loading"] {
    opacity: .9;
}

.pdfschau-wizard-results {
    display: grid;
    gap: .3rem;
    margin-top: .75rem;
}

.pdfschau-wizard-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    gap: 1rem;
    padding: .58rem .75rem;
    text-align: left;
    color: inherit;
    background: transparent;
    border: 1px solid var(--border-color, rgb(127 127 127 / 26%));
    border-radius: .38rem;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.pdfschau-wizard-result:hover,
.pdfschau-wizard-result:focus-visible {
    border-color: var(--link-color, #0d6efd);
    background: color-mix(in srgb, var(--body-bg, transparent) 96%, currentColor 4%);
    box-shadow: 0 .1rem .35rem rgb(0 0 0 / 8%);
    outline: none;
}

.pdfschau-wizard-result.is-selected {
    border-color: #198754;
    background: color-mix(in srgb, var(--body-bg, transparent) 94%, #198754 6%);
    box-shadow: inset 0 0 0 1px #198754;
}

.pdfschau-wizard-result-title {
    min-width: 0;
    font-size: .98rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.pdfschau-wizard-result-id {
    flex: 0 0 auto;
    font-size: .78rem;
    font-weight: 600;
    opacity: .62;
    white-space: nowrap;
}

.pdfschau-wizard-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1rem;
    font-size: .86rem;
    opacity: .82;
}

.pdfschau-wizard-dossier-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.pdfschau-wizard-dossier-badge,
.pdfschau-wizard-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .22rem .5rem;
    border: 1px solid var(--border-color, rgb(127 127 127 / 30%));
    border-radius: 999px;
    font-size: .78rem;
    line-height: 1.25;
}

.pdfschau-wizard-dossier-badge.is-empty {
    opacity: .62;
}

.pdfschau-wizard-filter-selection {
    margin-top: .45rem;
}

.pdfschau-wizard-filter-remove {
    display: inline-grid;
    width: 1.1rem;
    height: 1.1rem;
    padding: 0;
    place-items: center;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.pdfschau-wizard-filter-remove:hover,
.pdfschau-wizard-filter-remove:focus-visible {
    background: rgb(127 127 127 / 18%);
    outline: none;
}

.pdfschau-wizard-dossier-results {
    display: grid;
    gap: .35rem;
    margin-top: .2rem;
}

.pdfschau-wizard-dossier-result {
    display: flex;
    width: 100%;
    padding: .55rem .65rem;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    color: inherit;
    text-align: left;
    background: color-mix(in srgb, var(--body-bg, transparent) 95%, currentColor 5%);
    border: 1px solid var(--border-color, rgb(127 127 127 / 25%));
    border-radius: .45rem;
    cursor: pointer;
}

.pdfschau-wizard-dossier-result:hover,
.pdfschau-wizard-dossier-result:focus-visible {
    border-color: var(--link-color, #0d6efd);
    outline: none;
}

.pdfschau-wizard-dossier-result span {
    font-size: .78rem;
    opacity: .68;
}

.pdfschau-wizard-review-card {
    display: grid;
    gap: .75rem;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color, rgb(127 127 127 / 30%));
    border-radius: .6rem;
    background: color-mix(in srgb, var(--body-bg, transparent) 94%, currentColor 6%);
}

.pdfschau-wizard-review-card h3 {
    margin: 0;
    font-size: 1.15rem;
}

.pdfschau-wizard-review-label {
    margin-top: .15rem;
}

.pdfschau-wizard-review-grid {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: .25rem .85rem;
    margin: .15rem 0 0;
}

.pdfschau-wizard-review-grid dt,
.pdfschau-wizard-review-grid dd {
    margin: 0;
}

.pdfschau-wizard-review-grid dd {
    opacity: .82;
}

.pdfschau-wizard-review-note {
    display: flex;
    gap: .55rem;
    margin-top: 1rem;
    padding: .75rem .9rem;
    align-items: flex-start;
    border: 1px solid var(--border-color, rgb(127 127 127 / 30%));
    border-radius: .5rem;
    font-size: .9rem;
    opacity: .82;
}

@media (max-width: 850px) {
    .pdfschau-wizard-search-grid {
        grid-template-columns: 1fr;
    }

    .pdfschau-articlewizard.is-compact {
        min-height: auto;
        display: block;
    }
}


/* PDFSchau 6.1.3.1083 - Article Integration V1 document-data/type step. */
.pdfschau-wizard-upload-zone {
    display: grid;
    width: 100%;
    min-height: 9rem;
    margin-top: 1rem;
    padding: 1.25rem;
    place-items: center;
    align-content: center;
    gap: .5rem;
    color: inherit;
    background: transparent;
    border: 1px dashed var(--border-color, rgb(127 127 127 / 40%));
    border-radius: .65rem;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.pdfschau-wizard-upload-zone:hover,
.pdfschau-wizard-upload-zone:focus-visible,
.pdfschau-wizard-upload-zone.is-dragover {
    border-color: var(--link-color, #0d6efd);
    background: color-mix(in srgb, var(--body-bg, transparent) 94%, currentColor 6%);
    outline: none;
}

.pdfschau-wizard-upload-zone > [class^="icon-"] {
    font-size: 1.7rem;
}

.pdfschau-wizard-upload-zone span:last-child {
    font-size: .86rem;
    opacity: .72;
}

.pdfschau-wizard-upload-progress {
    margin-top: .8rem;
}

.pdfschau-wizard-upload-card {
    display: flex;
    margin-top: 1rem;
    padding: .9rem 1rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #198754;
    border-radius: .6rem;
    background: color-mix(in srgb, var(--body-bg, transparent) 94%, #198754 6%);
}

.pdfschau-wizard-upload-ok {
    color: #198754;
    font-weight: 700;
}

.pdfschau-wizard-duplicate {
    margin-top: 1rem;
    padding: .9rem 1rem;
    border: 1px solid #fd7e14;
    border-radius: .6rem;
    background: color-mix(in srgb, var(--body-bg, transparent) 94%, #fd7e14 6%);
}

.pdfschau-wizard-duplicate > p {
    margin: .35rem 0 .75rem;
    opacity: .82;
}

.pdfschau-wizard-duplicate-row {
    display: flex;
    padding: .65rem 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--border-color, rgb(127 127 127 / 25%));
}

.pdfschau-wizard-duplicate-row > div {
    display: grid;
    gap: .15rem;
}

.pdfschau-wizard-duplicate-row span {
    font-size: .8rem;
    opacity: .72;
}

.pdfschau-wizard-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.pdfschau-wizard-field-wide {
    grid-column: 1 / -1;
}

.pdfschau-wizard-step[data-step="file"],
.pdfschau-wizard-step[data-step="data"] {
    cursor: pointer;
}

@media (max-width: 700px) {
    .pdfschau-wizard-data-grid {
        grid-template-columns: 1fr;
    }

    .pdfschau-wizard-upload-card,
    .pdfschau-wizard-duplicate-row {
        align-items: stretch;
        flex-direction: column;
    }
}

/* PDFSchau 6.1.3.1085 / 1120 - Joomla-native searchable document-type pull-down.
 * 1120 binds the generated Choices runtime shell to the PDFSchau control:
 * one explicit browse button on the left, Joomla's search/select in the middle,
 * and a remove control on the right only after a real document type was chosen. */
.pdfschau-wizard-type-combobox {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.pdfschau-wizard-type-toggle {
    flex: 0 0 auto;
    min-width: 3rem;
    border-start-end-radius: 0;
    border-end-end-radius: 0;
}

.pdfschau-wizard-type-fancy-select {
    display: block;
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
}

.pdfschau-wizard-type-fancy-select .choices {
    margin-bottom: 0;
    width: 100%;
}

.pdfschau-wizard-type-fancy-select .choices__inner {
    min-height: calc(2.5rem + 2px);
    border-start-start-radius: 0;
    border-end-start-radius: 0;
}

/* Joomla's fancy-select uses Choices.js. Its own select-one chevron is suppressed
 * because the explicit, keyboard-focusable browse button on the left is the sole
 * dropdown affordance for PDFSchau. !important is intentional here: Joomla's
 * Choices stylesheet may be loaded after the component stylesheet. */
/* Joomla 6.1 can paint the select-one affordance on the fancy-select host itself
 * or on one of the generated Choices shells. Cover each of those rendering layers
 * while leaving the real remove button untouched. */
.pdfschau-wizard-type-fancy-select::before,
.pdfschau-wizard-type-fancy-select::after,
.pdfschau-wizard-type-combobox > .choices::before,
.pdfschau-wizard-type-combobox > .choices::after,
.pdfschau-wizard-type-combobox > .choices[data-type*="select-one"]::after,
.pdfschau-wizard-type-combobox > .choices > .choices__inner::before,
.pdfschau-wizard-type-combobox > .choices > .choices__inner::after,
.pdfschau-wizard-type-fancy-select .choices::before,
.pdfschau-wizard-type-fancy-select .choices::after,
.pdfschau-wizard-type-fancy-select .choices[data-type*="select-one"]::after,
.pdfschau-wizard-type-fancy-select .choices__inner::before,
.pdfschau-wizard-type-fancy-select .choices__inner::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    background: none !important;
}

/* 1120 targets the exact Choices nodes returned by Joomla's live instance.
 * This removes only the independent right-hand dropdown chevron; Joomla's
 * separate clear/remove button remains available after a real selection. */
.pdfschau-wizard-type-runtime-choices::before,
.pdfschau-wizard-type-runtime-choices::after,
.pdfschau-wizard-type-runtime-choices[data-type*="select-one"]::after,
.pdfschau-wizard-type-runtime-inner::before,
.pdfschau-wizard-type-runtime-inner::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    background: none !important;
}

/* Some Joomla/Bootstrap combinations retain the native select background chevron
 * underneath the fancy-select shell. Keep the real select as source of truth, but
 * remove only its decorative arrow inside this PDFSchau control. */
.pdfschau-wizard-type-fancy-select select.form-select,
.pdfschau-wizard-type-fancy-select select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: none !important;
}

/* Joomla deliberately enables a remove-item button for fancy-select and names it
 * choices__button_joomla. Hide it for the placeholder/empty state; expose it only
 * after PDFSchau has confirmed a real document-type value. The fallback selector
 * keeps this robust if Joomla returns to the upstream Choices class name. */
.pdfschau-wizard-type-fancy-select .choices__button_joomla,
.pdfschau-wizard-type-fancy-select .choices__button {
    display: none !important;
}

.pdfschau-wizard-type-fancy-select.has-value .choices__button_joomla,
.pdfschau-wizard-type-fancy-select.has-value .choices__button {
    display: block !important;
}



/* PDFSchau 6.1.3.1086 - searchable multi-dossier assignment. */
.pdfschau-wizard-new-dossier-selection {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .65rem;
}

.pdfschau-wizard-filter-chip.is-warning {
    border-color: #fd7e14;
    background: color-mix(in srgb, var(--body-bg, transparent) 94%, #fd7e14 6%);
}

.pdfschau-wizard-no-dossier {
    display: flex;
    margin-top: 1rem;
    padding: .9rem 1rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--border-color, rgb(127 127 127 / 30%));
    border-radius: .6rem;
    background: color-mix(in srgb, var(--body-bg, transparent) 96%, currentColor 4%);
}

.pdfschau-wizard-no-dossier > div {
    display: grid;
    gap: .2rem;
}

.pdfschau-wizard-no-dossier > div > span {
    font-size: .86rem;
    opacity: .75;
}

.pdfschau-wizard-no-dossier.is-confirmed {
    border-color: #fd7e14;
}

.pdfschau-wizard-no-dossier-confirm {
    margin-top: .75rem;
    padding: .85rem 1rem;
    border: 1px solid #fd7e14;
    border-radius: .55rem;
    background: color-mix(in srgb, var(--body-bg, transparent) 94%, #fd7e14 6%);
}

.pdfschau-wizard-no-dossier-confirm p {
    margin: 0 0 .75rem;
}

.pdfschau-wizard-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

@media (max-width: 700px) {
    .pdfschau-wizard-no-dossier {
        align-items: stretch;
        flex-direction: column;
    }
}

/* PDFSchau 6.1.3.1087 - visibility choice and dossier UX refinement. */
.pdfschau-wizard-visibility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.pdfschau-wizard-visibility-option {
    display: flex;
    min-height: 8.25rem;
    padding: 1rem;
    align-items: flex-start;
    gap: .8rem;
    border: 1px solid var(--border-color, rgb(127 127 127 / 30%));
    border-radius: .65rem;
    background: color-mix(in srgb, var(--body-bg, transparent) 96%, currentColor 4%);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.pdfschau-wizard-visibility-option:hover,
.pdfschau-wizard-visibility-option:focus-within {
    border-color: var(--template-link-color, #0d6efd);
}

.pdfschau-wizard-visibility-option.is-selected {
    border-color: var(--template-link-color, #0d6efd);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--template-link-color, #0d6efd) 75%, transparent);
}

.pdfschau-wizard-visibility-radio {
    padding-top: .15rem;
}

.pdfschau-wizard-visibility-copy {
    display: grid;
    gap: .45rem;
}

.pdfschau-wizard-visibility-copy > span:last-child {
    opacity: .82;
    line-height: 1.45;
}

.pdfschau-wizard-visibility-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
}

.pdfschau-wizard-public-confirm {
    margin-top: 1rem;
    padding: .95rem 1rem;
    border: 1px solid #fd7e14;
    border-radius: .6rem;
    background: color-mix(in srgb, var(--body-bg, transparent) 94%, #fd7e14 6%);
}

.pdfschau-wizard-public-confirm p {
    margin: 0 0 .75rem;
}

@media (max-width: 760px) {
    .pdfschau-wizard-visibility-grid {
        grid-template-columns: 1fr;
    }
}



/* PDFSchau 6.1.3.1088 - browseable dossier pull-down. */
.pdfschau-wizard-dossier-combobox {
    position: relative;
}

.pdfschau-wizard-dossier-combobox .input-group .form-control {
    min-width: 0;
}

.pdfschau-wizard-dossier-combobox .input-group .btn {
    min-width: 3rem;
}

.pdfschau-wizard-dossier-dropdown {
    position: absolute;
    z-index: 1200;
    top: calc(100% + .3rem);
    right: 0;
    left: 0;
    max-height: min(24rem, 48vh);
    padding: .45rem;
    overflow: auto;
    background: var(--body-bg, #fff);
    border: 1px solid var(--border-color, rgb(127 127 127 / 35%));
    border-radius: .5rem;
    box-shadow: 0 .8rem 2rem rgb(0 0 0 / 18%);
}

[data-bs-theme="dark"] .pdfschau-wizard-dossier-dropdown,
[data-color-scheme="dark"] .pdfschau-wizard-dossier-dropdown {
    background: var(--body-bg, #101820);
}

.pdfschau-wizard-dossier-dropdown .pdfschau-wizard-live-status {
    min-height: 0;
    margin: .2rem .25rem .45rem;
}

.pdfschau-wizard-dossier-dropdown .pdfschau-wizard-dossier-results {
    margin-top: 0;
}

.pdfschau-wizard-dossier-combobox.is-open .input-group .form-control,
.pdfschau-wizard-dossier-combobox.is-open .input-group .btn {
    border-color: var(--link-color, #0d6efd);
}

/* Build 1100: stable PDFSchau references rendered inside Joomla single articles. */
/* PDFSchau 6.1.3.1105 - automatic responsive document sequences in single articles.
   The max width plus per-cell minimum caps a row at six cards without author settings. */
.pdfschau-article-sequence {
    display: grid;
    width: 100%;
    max-width: 68rem;
    margin: 1rem 0;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
    gap: 1rem;
    /* Grid rows stretch to the tallest title in that visible row. This is the
       row-local basis for the PDFSchau "Monk" alignment and recomputes
       automatically whenever responsive wrapping changes the visible rows. */
    align-items: stretch;
}

.pdfschau-article-sequence-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.pdfschau-article-sequence-item .pdfschau-article-embed {
    display: flex;
    min-height: 100%;
    flex: 1 1 auto;
    flex-direction: column;
    margin-block: 0;
}

.pdfschau-article-sequence-item .pdfschau-viewer-entry {
    display: flex;
    height: 100%;
    flex: 1 1 auto;
    flex-direction: column;
}

.pdfschau-article-sequence-item .pdfschau-article-embed,
.pdfschau-article-sequence-item .pdfschau-viewer-entry,
.pdfschau-article-sequence-item .pdfschau-cover-link {
    width: 100%;
    max-width: 100%;
}

.pdfschau-article-sequence-item .pdfschau-viewer-entry-heading {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    align-items: flex-end;
    font-size: .9rem;
    overflow-wrap: anywhere;
}

.pdfschau-article-sequence-item .pdfschau-viewer-entry-heading > strong {
    display: block;
    width: 100%;
}

/* Article embeds intentionally show only the primary title. Other PDFSchau
 * contexts keep their secondary order/name line unchanged. */
.pdfschau-article-embed .pdfschau-document-order-name {
    display: none;
}

.pdfschau-article-sequence-item .pdfschau-cover-link {
    flex: 0 0 auto;
}

.pdfschau-article-sequence-item .pdfschau-cover-stage {
    width: calc(100% - 2.2rem);
    max-width: none;
    /* Article cards use one neutral A-series preview frame. The PDF page itself
       is only fitted into this frame and is never stretched or cropped. */
    aspect-ratio: 210 / 297;
}

.pdfschau-article-sequence-item .pdfschau-cover-canvas {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
}

.pdfschau-article-sequence-item .pdfschau-cover-placeholder {
    height: 100%;
}

.pdfschau-article-embed {
    display: block;
    margin: 1.25rem 0;
}


/* PDFSchau 6.1.3.1101 - editor/article UX polish.
 * Dossier browse control is deliberately the leading input-group action; Bootstrap
 * owns the joined control radii. Article-entry download suppression is rendered
 * server-side and therefore needs no CSS hiding rule. */


/* 6.1.3.1156: deliberately simple optional committee multi-selection. */
.pdfschau-wizard-body-list {
  display: grid;
  gap: .5rem;
  max-height: 21rem;
  overflow: auto;
  padding: .25rem;
  border: 1px solid var(--border-color, #dfe3e7);
  border-radius: .5rem;
}

.pdfschau-wizard-body-option {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .65rem .75rem;
  border-radius: .4rem;
  cursor: pointer;
}

.pdfschau-wizard-body-option:hover,
.pdfschau-wizard-body-option:has(input:checked) {
  background: color-mix(in srgb, var(--body-bg, transparent) 92%, var(--bs-primary, #0d6efd) 8%);
}

.pdfschau-wizard-body-option input {
  margin-top: .2rem;
  flex: 0 0 auto;
}

.pdfschau-wizard-body-option span {
  display: grid;
  gap: .1rem;
}

.pdfschau-wizard-body-option small {
  opacity: .72;
}
