/* PDF.js 3.11.174 layer adaptation. Upstream concepts/styles derived from Mozilla PDF.js Apache-2.0 viewer CSS. */
:root{--scale-factor:1;--annotation-unfocused-field-background:rgba(0,54,255,.10);--input-focus-border-color:#2563eb;--outline-width:2px;--outline-color:#2563eb;--outline-around-color:#fff;--freetext-line-height:1.35;--freetext-padding:2px;--resizer-size:7px}
[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg) translateX(-100%)}
.annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0;z-index:3}.annotationLayer canvas{position:absolute;width:100%;height:100%;pointer-events:none}.annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;transform-origin:0 0}.annotationLayer section svg{position:absolute;width:100%;height:100%;top:0;left:0}.annotationLayer .linkAnnotation>a,.annotationLayer .buttonWidgetAnnotation.pushButton>a{position:absolute;inset:0}.annotationLayer .textAnnotation img{position:absolute;inset:0;width:100%;height:100%;cursor:pointer}
.annotationLayer .textWidgetAnnotation :is(input,textarea),.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{background:var(--annotation-unfocused-field-background);border:2px solid transparent;box-sizing:border-box;font:calc(9px * var(--scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%;color:#111!important;color-scheme:light;background-color:transparent}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover{border-color:#111}.annotationLayer .textWidgetAnnotation :is(input,textarea):focus,.annotationLayer .choiceWidgetAnnotation select:focus{background:#fff;border-color:var(--input-focus-border-color);outline:1px solid #fff;border-radius:2px}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{appearance:none;-webkit-appearance:none}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked::before{background:#111;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked::before{border-radius:50%;height:50%;left:25%;top:25%;width:50%}.annotationLayer .popupAnnotation{position:absolute;font-size:calc(9px * var(--scale-factor));pointer-events:none;width:max-content;max-width:45%;height:auto}.annotationLayer .popup{background:#ffff99;color:#111;box-shadow:0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) #888;border-radius:calc(2px * var(--scale-factor));outline:1px solid #fffa4a;padding:calc(6px * var(--scale-factor));cursor:pointer;white-space:normal;pointer-events:auto}
.annotationEditorLayer{background:transparent;position:absolute;inset:0;font-size:calc(100px * var(--scale-factor));transform-origin:0 0;cursor:auto;z-index:4;pointer-events:none}.annotationEditorLayer.freeTextEditing,.annotationEditorLayer.inkEditing{pointer-events:auto}.annotationEditorLayer.freeTextEditing{cursor:text}.annotationEditorLayer.inkEditing{cursor:crosshair}.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor){position:absolute;background:transparent;z-index:1;transform-origin:0 0;cursor:auto;max-width:100%;max-height:100%;border:2px solid transparent}.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor).selectedEditor{border-color:var(--outline-color);outline:1px solid var(--outline-around-color)}.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor):hover:not(.selectedEditor){border-color:#8f8f9d}.annotationEditorLayer .freeTextEditor{padding:calc(var(--freetext-padding) * var(--scale-factor));width:auto;height:auto;touch-action:none}.annotationEditorLayer .freeTextEditor .internal{background:transparent;border:none;inset:0;overflow:visible;white-space:nowrap;font:10px sans-serif;line-height:var(--freetext-line-height);user-select:none;color:#111}.annotationEditorLayer .freeTextEditor .internal:empty::before{content:attr(default-content);color:#777}.annotationEditorLayer .freeTextEditor .internal:focus{outline:none;user-select:auto}.annotationEditorLayer .inkEditor{width:100%;height:100%}.annotationEditorLayer .inkEditor.editing{cursor:inherit}.annotationEditorLayer .inkEditor .inkEditorCanvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none}.annotationEditorLayer .resizers{position:absolute;inset:0}.annotationEditorLayer .resizers.hidden{display:none}.annotationEditorLayer .resizer{width:var(--resizer-size);height:var(--resizer-size);background:var(--outline-color);border:1px solid #fff;border-radius:2px;position:absolute}.annotationEditorLayer .resizer.topLeft{top:-5px;left:-5px}.annotationEditorLayer .resizer.topRight{top:-5px;right:-5px}.annotationEditorLayer .resizer.bottomLeft{bottom:-5px;left:-5px}.annotationEditorLayer .resizer.bottomRight{bottom:-5px;right:-5px}.annotationEditorLayer .resizer.topMiddle{top:-5px;left:50%}.annotationEditorLayer .resizer.bottomMiddle{bottom:-5px;left:50%}.annotationEditorLayer .resizer.middleLeft{left:-5px;top:50%}.annotationEditorLayer .resizer.middleRight{right:-5px;top:50%}
/* Mode arbitration. View is strictly read-only. Annotate/Select owns form fields and existing editors; active tools own the gesture surface. */
:root[data-pdf-mode="view"] .annotationEditorLayer{pointer-events:none!important}
:root[data-pdf-mode="view"] .annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor){pointer-events:none!important}
:root[data-pdf-mode="view"] .annotationLayer :is(.textWidgetAnnotation,.choiceWidgetAnnotation,.buttonWidgetAnnotation){pointer-events:none!important}
:root[data-pdf-mode="annotate"][data-annotate-tool="select"] .annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor){pointer-events:auto}
:root[data-pdf-mode="annotate"][data-annotate-tool="select"] .annotationLayer section{pointer-events:auto}
:root[data-pdf-mode="annotate"]:not([data-annotate-tool="select"]) .annotationLayer section{pointer-events:none}
.pdf-stack.noUserSelect{user-select:none;-webkit-user-select:none}
