.pdf-dialog[hidden] { display: none !important; }
.pdf-dialog {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.pdf-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .75);
}
.pdf-dialog__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100%, 1100px);
    height: min(100%, 900px);
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
}
.pdf-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 8px 12px;
    background: #011378;
    color: #fff;
}
.pdf-dialog__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 600;
}
.pdf-dialog__close {
    flex: none;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid #fff;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
.pdf-dialog__frame {
    flex: 1;
    width: 100%;
    min-height: 0;
    border: 0;
}
@media (max-width: 767px) {
    .pdf-dialog { padding: 0; }
    .pdf-dialog__panel { width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
}
