/* Shared PDF editor for the site and the phone PWA. */
.pdf-editor-mode-row{display:grid;grid-template-columns:auto minmax(180px,300px);align-items:center;gap:10px 16px;margin:16px 24px;color:#40566c;font-size:14px}
.pdf-editor-mode-row>label{font-weight:600}.pdf-editor-mode-row select{min-height:44px;border:1px solid #bccbd9;border-radius:8px;padding:8px;background:white;color:#263c50;font:inherit}
.pdf-editor-mode-row p{grid-column:1/-1;margin:0;line-height:1.5;color:#617084}
.pdf-editor input,.pdf-editor select,.pdf-editor button{box-sizing:border-box}
.pdf-editor button{min-height:44px}.pdf-editor button:disabled{opacity:.5;cursor:default}
.pdf-editor .btn.ghost{background:white;color:#3a4c60;border:1px solid #cbd3dc}.pdf-editor .hint{background:transparent;border:0;padding:0}
.pdf-editor-stage{justify-content:flex-start;max-height:80vh;max-height:80dvh;overscroll-behavior:contain}
.pdf-editor-page{flex-shrink:0;margin:0 auto;max-width:none}.pdf-editor-page canvas{width:100%}
#pdf-editor-lines{position:absolute;inset:0;pointer-events:none}
.pdf-editor .pdf-source-line{position:absolute;display:block;padding:0;min-height:0;min-width:0;border:0;border-radius:1px;background:transparent;cursor:text;pointer-events:auto}
.pdf-editor .pdf-source-line:hover,.pdf-editor .pdf-source-line:focus-visible{outline:1px solid #6482a2;background:#40679214}
.pdf-editor .pdf-source-unavailable:hover{outline-color:#ad854d;background:#ad854d12;cursor:help}
.pdf-inline-editor{box-sizing:border-box;margin:0;padding:0;border:0;outline:1px solid #6482a2;min-width:0;min-height:0;border-radius:0;resize:none;box-shadow:none;line-height:1.2}
.pdf-text-fields select{width:100%;min-height:44px;border:1px solid #cbd3dc;border-radius:7px;background:white;color:#1f2a38}.pdf-text-fields input[type=color]{height:38px;padding:3px}
#pdf-edit-warning{color:#a0392f;line-height:1.5}#pdf-edit-warning:empty{display:none}
.pdf-editor[data-pdf-mode=native] .pdf-text-fields label:has(#pdf-edit-size),.pdf-editor[data-pdf-mode=native] .pdf-text-fields label:has(#pdf-edit-font),.pdf-editor[data-pdf-mode=native] .pdf-text-fields label:has(#pdf-edit-color){display:none}
#pdf-native-style:empty{display:none}
.pdf-zoom-label{display:flex;align-items:center;gap:6px;color:#455467;font-size:13px}.pdf-zoom-label select{min-height:44px;border:1px solid #cbd3dc;border-radius:7px;background:white;color:#1f2a38}
@media(max-width:760px){.pdf-editor-mode-row{grid-template-columns:1fr;margin:14px 18px}.pdf-editor-controls{scroll-margin-top:90px}.pdf-editor-body{min-height:0}.pdf-editor-stage{min-height:280px}.pdf-editor-toolbar{gap:8px}.pdf-editor .pdf-editor-tools{grid-template-columns:1fr 1fr}.pdf-editor-mode-row p{font-size:13px}}
