/* v3.9.8 selectable text block deletion and dragging */
.bpdf-block-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:7px}
.bpdf-block-actions button{min-height:42px;line-height:1.25;font-size:12px}
.bpdf-properties .bpdf-danger{background:#fff5f2!important;color:#9a3a28!important;border:1px solid #e7bfb5!important}
.bpdf-properties .bpdf-danger:hover{background:#ffe7e0!important}
#bpdf-move[aria-pressed="true"]{background:#e8f5e9!important;color:#075c40!important;border:1px solid #5ba681!important}
#bpdf-move-help{font-size:11px;line-height:1.5;margin:9px 0 14px}
.bpdf-text-zone.bpdf-deleted{border:1px dashed #c76e55!important;color:#a64134!important}
.bpdf-text-zone .bpdf-removed-label{position:absolute;top:0;left:0;background:#fff4f1!important;color:#a64134!important;font-size:9px!important;pointer-events:none;padding:2px 4px;white-space:nowrap;opacity:.9}
.bpdf-is-moving .bpdf-text-zone:not(.bpdf-deleted){cursor:grab!important;touch-action:none}
.bpdf-is-moving .bpdf-text-zone.bpdf-dragging{cursor:grabbing!important;outline:2px solid #0c9459;z-index:8}
.bpdf-text-zone .bpdf-preview-text{pointer-events:auto;user-select:none;cursor:inherit;white-space:pre}
@media(max-width:570px){.bpdf-block-actions{grid-template-columns:1fr}.bpdf-block-actions button{min-height:42px}}

.bpdf-block-actions{grid-template-columns:1fr}
/* v3.9.9 native mouse and keyboard selection */
.bpdf-is-moving .bpdf-text-zone:not(.bpdf-deleted){cursor:grab!important;touch-action:none}
.bpdf-area-mode #bpdf-hotspots{cursor:crosshair;touch-action:none}
.bpdf-area-mode .bpdf-text-zone{pointer-events:none!important}
#bpdf-marquee{position:absolute;z-index:20;background:rgba(25,146,86,.12);border:1.5px dashed #118c59;pointer-events:none;box-sizing:border-box}
#bpdf-marquee[hidden]{display:none}
#bpdf-area[aria-pressed="true"],#bpdf-move[aria-pressed="true"]{background:#e3f3e6!important;border:1px solid #4b9b77!important;color:#096141!important}
#bpdf-delete-selected{background:#fff4f1!important;color:#963b27!important;border:1px solid #e7baae!important}
#bpdf-delete-selected:disabled{opacity:.42;cursor:not-allowed}
.bpdf-actions{flex-wrap:wrap}
#bamboo-text-editor .bpdf-text-zone:not(.bpdf-deleted){cursor:grab;touch-action:none}
.bpdf-text-zone.bpdf-selected{outline:2px solid #168955!important}
.bpdf-text-zone:focus-visible{outline:2px solid #0e7758!important}
@media(max-width:650px){.bpdf-actions{gap:6px}.bpdf-actions button{flex:1 1 46%;font-size:11px;min-height:42px}}

/* v3.10.4 precise text formatting and faithful image movement */
#bamboo-text-editor .bpdf-style-strip{display:flex;gap:7px;margin:9px 0 12px}
#bamboo-text-editor .bpdf-style-strip .bpdf-format{display:inline-flex;align-items:center;justify-content:center;flex:0 0 43px!important;width:43px!important;height:39px;min-height:39px;padding:5px!important;margin:0!important;font-family:Arial,sans-serif;font-size:17px;color:#21573e;background:#f8fbf8;border:1px solid #cbded2;border-radius:8px}
#bamboo-text-editor .bpdf-format[aria-pressed="true"]{background:#dcefe4!important;box-shadow:inset 0 0 0 1px #2d8e65;border-color:#2d8e65!important}
#bamboo-text-editor #bpdf-font,#bamboo-text-editor #bpdf-align{width:100%;min-height:41px}
#bamboo-text-editor .bpdf-raster-preview{position:absolute!important;display:block!important;font-size:0!important;line-height:0!important;padding:0!important;border:0!important;max-width:none!important;font-weight:normal!important;transform:none!important;box-sizing:border-box!important}
#bamboo-text-editor .bpdf-raster-preview::before{display:none!important}
#bamboo-text-editor .bpdf-style-strip button:focus-visible{outline:2px solid #137754;outline-offset:2px}
@media(max-width:600px){#bamboo-text-editor .bpdf-style-strip{gap:5px}#bamboo-text-editor .bpdf-style-strip .bpdf-format{flex-basis:40px!important;width:40px!important}}

/* BambooEmail v3.10.5: spacious desktop document workspace */
@media(min-width:1100px){
 body.pdf-studio .btools-workspace{max-width:1680px!important;width:100%!important;padding:0 clamp(18px,2vw,36px)!important;margin:32px auto 60px!important}
 body.pdf-studio .btools-workspace>section.btools-app-card{padding:clamp(19px,1.6vw,30px)!important}
 body.pdf-studio .btools-app-head{padding-inline:max(20px,calc((100vw - 1620px)/2))!important}
 body.pdf-studio #bamboo-text-editor{padding:clamp(19px,1.6vw,30px)!important}
 body.pdf-studio #bamboo-text-editor .bpdf-layout{grid-template-columns:minmax(0,1fr) minmax(345px,410px)!important;gap:22px!important;align-items:start!important}
 body.pdf-studio #bamboo-text-editor .bpdf-canvas-pane{padding:15px!important}
 body.pdf-studio #bamboo-text-editor #bpdf-sheet-scroll{max-height:min(84vh,1050px)!important;width:100%!important}
}
@media(min-width:850px) and (max-width:1099px){
 body.pdf-studio .btools-workspace{max-width:100%!important;padding:0 20px!important}
 body.pdf-studio #bamboo-text-editor .bpdf-layout{grid-template-columns:minmax(0,1fr) 300px!important;gap:13px!important}
}
@media(max-width:849px){body.pdf-studio #bamboo-text-editor .bpdf-layout{grid-template-columns:1fr!important}}
#bamboo-text-editor .bpdf-top-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;align-items:stretch;padding:10px 0 16px;margin-bottom:13px;border-bottom:1px solid #e4eee6}
#bamboo-text-editor .bpdf-top-actions button{margin:0!important;min-height:43px!important;padding:8px!important;font-size:12px!important;line-height:1.25}
@media(max-width:500px){#bamboo-text-editor .bpdf-top-actions{grid-template-columns:1fr}}
#bamboo-text-editor .bpdf-fullscreen-toggle{background:#136c4d!important;color:#fff!important;border:2px solid #0f5b3e!important;font-weight:800!important;font-size:14px!important;min-height:47px!important;padding:10px 18px!important;box-shadow:0 4px 12px #19583c36!important}
#bamboo-text-editor .bpdf-fullscreen-toggle:hover{background:#0f533a!important;box-shadow:0 6px 18px #19583c4f!important}
#bamboo-text-editor .bpdf-fullscreen-toggle:focus-visible{outline:3px solid #a6d9ad!important;outline-offset:3px!important}
#bamboo-text-editor .bpdf-grid-toggle[aria-pressed="true"]{background:#dcefe5!important;color:#0d6644!important;border:1px solid #408f67!important}
#bamboo-text-editor .bpdf-grid-picker{display:inline-flex;align-items:center;max-width:230px;flex:0 1 215px}
#bamboo-text-editor .bpdf-grid-picker[hidden]{display:none!important}
#bamboo-text-editor #bpdf-grid-spacing{min-height:43px;width:100%;border-radius:10px;padding:8px 9px;border:1px solid #b9d1c1;background:#fff;color:#245842;font-size:12px}
#bamboo-text-editor #bpdf-grid-guides{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;overflow:visible}
#bamboo-text-editor .bpdf-original-mask{position:absolute;pointer-events:none!important;z-index:2;border:0!important;outline:0!important;border-radius:0!important;box-shadow:none!important}
#bamboo-text-editor .bpdf-text-zone.bpdf-has-new-position{z-index:4!important;border:0!important;box-shadow:none!important;outline:0!important}
#bamboo-text-editor .bpdf-text-zone.bpdf-has-new-position.bpdf-selected{z-index:6!important;outline:2px solid #11875a!important;outline-offset:1px!important;border:0!important}
#bamboo-text-editor .bpdf-text-zone.bpdf-has-new-position .bpdf-raster-preview{border:0!important;outline:0!important}
.bpdf-sr-only{position:absolute!important;clip:rect(0,0,0,0);height:1px;width:1px;overflow:hidden;white-space:nowrap}
#bamboo-text-editor .bpdf-actions{align-items:center!important}
@media(max-width:600px){#bamboo-text-editor .bpdf-grid-picker{flex:1 1 45%;max-width:none}}
/* Full screen also keeps a wide document pane and comfortable property panel. */
@media(min-width:1100px){#bamboo-text-editor.bpdf-expanded .bpdf-layout{grid-template-columns:minmax(0,1fr) minmax(360px,420px)!important;gap:18px!important}}

/* v3.10.6: invisible deletions, line-top PDF grid, multi-level undo, batch move. */
#bamboo-text-editor .bpdf-delete-mask{position:absolute;pointer-events:none!important;z-index:3!important;box-shadow:none!important;border:0!important;outline:0!important}
#bamboo-text-editor .bpdf-grid-toggle[aria-pressed="true"]{background:#dcefe4!important;color:#145739!important}
#bamboo-text-editor #bpdf-undo:disabled,#bamboo-text-editor #bpdf-redo:disabled{opacity:.42!important;cursor:not-allowed!important}
#bamboo-text-editor #bpdf-relocate:not(:disabled){background:#e6f5ed!important;color:#166345!important;border:1px solid #6bba92!important}
#bamboo-text-editor #bpdf-relocate[aria-pressed="true"]{background:#126647!important;color:#fff!important}
#bamboo-text-editor #bpdf-hotspots.bpdf-place-mode{cursor:crosshair!important}
#bamboo-text-editor .bpdf-grid-picker[hidden]{display:none!important}
#bamboo-text-editor .bpdf-deleted,#bamboo-text-editor .bpdf-removed-label{display:none!important}
#bamboo-text-editor .bpdf-text-zone.bpdf-has-new-position{border:0!important}
#bamboo-text-editor .bpdf-actions{gap:7px!important}

/* v3.10.7: selected-row destination and per-page export toolbar */
#bamboo-text-editor .bpdf-anchor-select,#bamboo-text-editor .bpdf-export-label{display:inline-flex;flex-direction:column;gap:4px;font-size:11px;font-weight:700;color:#315848;min-width:130px}
#bamboo-text-editor .bpdf-anchor-select{min-width:205px;max-width:300px}
#bamboo-text-editor .bpdf-anchor-select select,#bamboo-text-editor .bpdf-export-label select{min-height:38px;padding:6px 10px;background:#fff;border:1px solid #c7dbce;border-radius:9px;color:#194e37;max-width:100%}
#bamboo-text-editor .bpdf-top-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
#bamboo-text-editor .bpdf-top-actions button{flex:1 1 170px}
#bamboo-text-editor .bpdf-actions{align-items:end!important}
#bamboo-text-editor #bpdf-save-split{background:#eaf5ee!important;color:#136143!important;border:1px solid #a4d5bc!important}
@media(max-width:750px){#bamboo-text-editor .bpdf-anchor-select{width:100%;max-width:none}}

/* v3.10.8 — grid is a separate visual guide, not PDF text. Deletion masks can never erase it. */
#bamboo-text-editor #bpdf-grid-guides{z-index:4!important;pointer-events:none!important;isolation:isolate}
#bamboo-text-editor .bpdf-text-zone{z-index:5;position:absolute}
#bamboo-text-editor .bpdf-delete-mask{z-index:3!important}
#bamboo-text-editor .bpdf-original-mask{z-index:2!important}
#bamboo-text-editor .bpdf-destination-group{display:inline-flex;flex:0 1 515px;align-items:flex-end;gap:10px;min-width:min(100%,380px);max-width:100%;flex-wrap:nowrap;white-space:normal}
#bamboo-text-editor .bpdf-destination-group .bpdf-anchor-select{flex:1 1 245px;min-width:0;max-width:none;margin:0}
#bamboo-text-editor .bpdf-destination-group #bpdf-relocate{flex:0 0 auto;min-height:43px;max-width:235px;margin:0!important;white-space:normal}
@media(max-width:530px){#bamboo-text-editor .bpdf-destination-group{flex:1 1 100%;min-width:0;gap:7px}#bamboo-text-editor .bpdf-destination-group .bpdf-anchor-select{flex:1 1 50%}#bamboo-text-editor .bpdf-destination-group #bpdf-relocate{flex:1 1 46%;max-width:49%;font-size:11px}}
