#cp-organize[data-tool="delete-pdf-pages"] [hidden]{display:none!important}.dp-head,.dp-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.dp-head p{overflow-wrap:anywhere}.dp-work{display:grid;grid-template-columns:270px minmax(0,1fr);gap:16px}.dp-options,.dp-viewer{min-width:0;background:#f7faff;border:1px solid #d5e2f1;border-radius:14px;padding:14px}.dp-options input:not([type=checkbox]){width:100%;box-sizing:border-box;border:1px solid #b9cde6;border-radius:8px;padding:10px;margin:6px 0}.dp-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:12px 0}.dp-options button,.dp-viewer button{font:inherit;font-size:13px;padding:8px;border:1px solid #cbdcf0;border-radius:8px;background:white;color:#164779;cursor:pointer}.dp-warning{font-size:12px;color:#96333b}.dp-hint{font-size:12px;color:#526887}.dp-stats{display:grid;gap:5px;margin-bottom:12px}.dp-stats span{display:flex;justify-content:space-between;font-size:13px;background:white;padding:7px;border-radius:6px}.dp-stats span:nth-child(2){background:#ffe7e7;color:#9b232b}.dp-stats span:nth-child(3){background:#e6f5eb;color:#17683e}#dp-thumbs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:48vh;overflow:auto}.dp-thumb{border:1px solid #d1ddeb;border-radius:8px;background:white;padding:5px;min-width:0}.dp-thumb button{display:grid;place-items:center;width:100%;height:125px;padding:3px;border:0;background:#edf2f8}.dp-thumb canvas{max-width:100%;max-height:115px;object-fit:contain}.dp-thumb label{display:flex;justify-content:center;align-items:center;gap:5px;padding:5px;cursor:pointer}.dp-thumb.dp-remove{background:#ffdddd;border-color:#d25459}.dp-thumb.dp-active{outline:2px solid #2469a8;outline-offset:-2px}#dp-stage{height:76vh;min-height:280px;overflow:auto;background:#e6edf5;border-radius:9px;padding:16px;box-sizing:border-box;cursor:grab;touch-action:none;overscroll-behavior:contain}#dp-stage.dp-drag{cursor:grabbing}#dp-page{display:block;max-width:none!important;margin:0 auto;background:white;box-shadow:0 5px 20px #12365d22}#dp-page.dp-remove-preview{outline:3px solid #c83c46}#dp-toggle{margin-top:10px}#dp-current{font-size:13px}#cp-organize[data-tool="delete-pdf-pages"] #org-save{background:#ffc45f;color:#173962;border:1px solid #dda13b;font-weight:750}#cp-organize[data-tool="delete-pdf-pages"] button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:760px){.dp-work{grid-template-columns:1fr}#dp-thumbs{grid-template-columns:repeat(4,minmax(0,1fr));max-height:220px}#dp-stage{height:55vh}.dp-thumb button{height:90px}.dp-thumb canvas{max-height:80px}}
#pn-busy{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;background:#17304b66;padding:16px}.pn-busy-card{width:min(100%,410px);box-sizing:border-box;background:white;border:1px solid #d9e4f2;box-shadow:0 14px 45px #10274433;border-radius:18px;padding:28px;text-align:center;color:#143051}.pn-busy-card h2{font-size:22px;margin:14px 0 8px}.pn-busy-card progress{width:100%;accent-color:#16858c}.pn-spinner{width:40px;height:40px;margin:auto;border:4px solid #dce9f7;border-top-color:#2469a8;border-radius:50%;animation:pn-spin .8s linear infinite}#pn-clock{font-weight:700;color:#2469a8;font-variant-numeric:tabular-nums}@keyframes pn-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.pn-spinner{animation:none}}
.pn-busy-card{font-family:Arial,Helvetica,sans-serif}
#cp-organize[data-tool="delete-pdf-pages"] #dp-stage{height:60vh;min-height:280px;text-align:left}#cp-organize[data-tool="delete-pdf-pages"] #dp-page{max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important;object-fit:fill!important;aspect-ratio:auto!important;flex:none!important;display:block!important} @media(max-width:760px){#cp-organize[data-tool="delete-pdf-pages"] #dp-stage{height:55vh;min-height:240px}}

#cp-organize[data-tool="delete-pdf-pages"] .dp-work{align-items:start}#cp-organize[data-tool="delete-pdf-pages"] .dp-viewer{box-sizing:border-box;width:var(--dp-viewer-width,100%);max-width:100%;justify-self:center}#cp-organize[data-tool="delete-pdf-pages"] #dp-stage{height:var(--dp-stage-height,60vh);min-height:0;width:100%;max-width:100%;box-sizing:border-box}#cp-organize[data-tool="delete-pdf-pages"] #dp-page{margin-inline:auto!important}


#cp-organize[data-tool="delete-pdf-pages"] .dp-head{align-items:flex-start}
#cp-organize[data-tool="delete-pdf-pages"] .dp-title-block{flex:1 1 520px;min-width:0}
#cp-organize[data-tool="delete-pdf-pages"] .dp-title-block h2{margin:0 0 10px}
#cp-organize[data-tool="delete-pdf-pages"] .dp-doc-table{display:grid;grid-template-columns:minmax(0,2.2fr) repeat(2,minmax(120px,1fr));gap:10px;margin-top:8px}
#cp-organize[data-tool="delete-pdf-pages"] .dp-doc-cell{background:#fff;border:1px solid #d5e2f1;border-radius:12px;padding:10px 12px;box-shadow:0 6px 18px #12365d10;min-width:0}
#cp-organize[data-tool="delete-pdf-pages"] .dp-doc-cell span{display:block;font-size:11px;line-height:1.2;color:#58708d;text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px;font-weight:700}
#cp-organize[data-tool="delete-pdf-pages"] .dp-doc-cell strong{display:block;font-size:14px;line-height:1.4;color:#143051;overflow-wrap:anywhere}
#cp-organize[data-tool="delete-pdf-pages"] .dp-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;align-self:flex-start}
#cp-organize[data-tool="delete-pdf-pages"] .dp-head-actions #dp-cancel,
#cp-organize[data-tool="delete-pdf-pages"] .dp-head-actions #org-save{min-height:44px;padding:10px 18px}
#cp-organize[data-tool="delete-pdf-pages"] .dp-head-actions #org-save{white-space:nowrap}
@media(max-width:980px){#cp-organize[data-tool="delete-pdf-pages"] .dp-doc-table{grid-template-columns:1fr 1fr}#cp-organize[data-tool="delete-pdf-pages"] .dp-doc-cell:first-child{grid-column:1/-1}}
@media(max-width:760px){#cp-organize[data-tool="delete-pdf-pages"] .dp-head-actions{width:100%;justify-content:stretch}#cp-organize[data-tool="delete-pdf-pages"] .dp-head-actions #dp-cancel,#cp-organize[data-tool="delete-pdf-pages"] .dp-head-actions #org-save{flex:1 1 180px}#cp-organize[data-tool="delete-pdf-pages"] .dp-doc-table{grid-template-columns:1fr}}


#cp-organize[data-tool="delete-pdf-pages"] .dp-head{padding:2px 4px 14px;margin-bottom:10px}
#cp-organize[data-tool="delete-pdf-pages"] .dp-title-block{padding-right:10px}
#cp-organize[data-tool="delete-pdf-pages"] .dp-doc-table{margin-top:10px;margin-bottom:6px}
#cp-organize[data-tool="delete-pdf-pages"] .dp-doc-cell{padding:12px 14px}
#cp-organize[data-tool="delete-pdf-pages"] .dp-work{margin-top:4px}
@media(max-width:760px){#cp-organize[data-tool="delete-pdf-pages"] .dp-head{padding-inline:0;padding-bottom:10px}#cp-organize[data-tool="delete-pdf-pages"] .dp-title-block{padding-right:0}#cp-organize[data-tool="delete-pdf-pages"] .dp-doc-table{margin-bottom:10px}}

#cp-organize[data-tool="delete-pdf-pages"] #dp-thumbs{display:flex;flex-wrap:nowrap;justify-content:safe center;align-items:flex-start;gap:6px;width:100%;max-width:100%;min-width:0;max-height:none;overflow-x:auto;overflow-y:hidden;box-sizing:border-box;padding:8px 4px 10px;margin:0 0 10px;scrollbar-width:thin;overscroll-behavior-x:contain;background:#edf3fa;border:1px solid #d5e2f1;border-radius:9px}
#cp-organize[data-tool="delete-pdf-pages"] .dp-thumb{flex:0 0 46px;width:46px;box-sizing:border-box;padding:3px;border:1px solid transparent;background:transparent;border-radius:6px}
#cp-organize[data-tool="delete-pdf-pages"] .dp-thumb button{display:block;width:38px;height:49px;min-height:0;padding:0!important;margin:0!important;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0;line-height:0;color:#2469a8}
#cp-organize[data-tool="delete-pdf-pages"] .dp-thumb svg{display:block;width:38px;height:49px;overflow:visible}
#cp-organize[data-tool="delete-pdf-pages"] .dp-thumb label{padding:3px 0 0;min-height:18px;gap:0}
#cp-organize[data-tool="delete-pdf-pages"] .dp-thumb input{margin:0;cursor:pointer}
#cp-organize[data-tool="delete-pdf-pages"] .dp-thumb.dp-active{background:#e0edff;outline:2px solid #2469a8;outline-offset:-2px}
#cp-organize[data-tool="delete-pdf-pages"] .dp-thumb.dp-remove{background:#ffe7e7;color:#b52b35;border-color:#d54b53}
#cp-organize[data-tool="delete-pdf-pages"] .dp-thumb.dp-remove button{color:#b52b35}
#cp-organize[data-tool="delete-pdf-pages"] .dp-thumb.dp-remove .dp-icon-paper{fill:#fff0f0}
#cp-organize[data-tool="delete-pdf-pages"] .dp-thumb.dp-remove .dp-icon-lines{stroke:#d99a9e}
#cp-organize[data-tool="delete-pdf-pages"] .dp-thumb button:focus-visible{outline:2px solid #2469a8!important;outline-offset:2px}

#cp-organize[data-tool="delete-pdf-pages"] .org-result-stats{display:grid;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr));}#cp-organize[data-tool="delete-pdf-pages"] .org-result-stats>div{min-width:0;overflow-wrap:anywhere}#cp-organize[data-tool="delete-pdf-pages"] .org-result-stats>div:last-of-type strong{color:#a52d38}@media(max-width:600px){#cp-organize[data-tool="delete-pdf-pages"] .org-result-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

#cp-organize[data-tool="delete-pdf-pages"] #dp-deleted-trigger{display:inline-flex;align-items:center;gap:6px;background:none!important;box-shadow:none!important;border:0!important;padding:0!important;margin:0!important;min-height:0;min-width:0;color:#a52d38!important;font:inherit;cursor:pointer;text-align:left}
#dp-deleted-trigger svg{width:14px;height:14px;color:#526887}#dp-deleted-trigger:focus-visible{outline:2px solid #2469a8!important;outline-offset:4px}
#cp-organize[data-tool="delete-pdf-pages"] #dp-deleted-pop{position:fixed;z-index:9999;width:300px;max-width:calc(100vw - 24px);box-sizing:border-box;padding:14px;background:#f8faff;color:#143051;border:1px solid #c6d5e7;border-radius:13px;box-shadow:0 10px 28px #17304b30;text-align:left;font:14px Arial,sans-serif}
#dp-deleted-pop:before{content:"";position:absolute;left:var(--dp-arrow,50%);top:-7px;width:12px;height:12px;background:#f8faff;border-left:1px solid #c6d5e7;border-top:1px solid #c6d5e7;transform:translateX(-50%) rotate(45deg)}
#dp-deleted-pop.dp-above:before{top:auto;bottom:-7px;transform:translateX(-50%) rotate(225deg)}
#dp-deleted-pop .dp-pop-title{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:700;margin-bottom:10px}#dp-deleted-pop .dp-pop-icon{display:grid;place-items:center;width:32px;height:32px;background:#ffe4e4;color:#b52b35;border-radius:8px}#dp-deleted-pop .dp-pop-icon svg{width:19px;height:19px}#dp-deleted-pop .dp-pop-count{display:flex;justify-content:space-between;border-block:1px solid #d5e2f1;padding:9px 0;margin-bottom:9px}#dp-deleted-pop .dp-pop-list{display:flex;flex-wrap:wrap;gap:6px;max-height:136px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:6px 2px 2px;margin-top:4px}#dp-deleted-pop .dp-pop-chip{display:inline-block;background:#e5effc;border:1px solid #bed4f1;border-radius:16px;padding:5px 10px;font-weight:700;color:#173962;white-space:nowrap}#dp-deleted-pop .dp-pop-list:focus-visible{outline:2px solid #2469a8}

/* Compact deleted-page popover */
#cp-organize[data-tool="delete-pdf-pages"] #dp-deleted-pop{width:270px;padding:12px;max-height:calc(100vh - 24px);display:flex;flex-direction:column}
#dp-deleted-pop .dp-pop-title{margin:0;padding-bottom:9px;border-bottom:1px solid #d5e2f1;flex:none;font-size:15px}
#dp-deleted-pop .dp-pop-icon{width:28px;height:28px;flex:none}
#dp-deleted-pop .dp-pop-list{justify-content:center;align-content:flex-start;gap:6px;min-height:0;max-height:114px;overflow-y:auto;overflow-x:hidden;margin:0;padding:12px 2px 2px;flex:0 1 auto;scrollbar-color:#b7cbe5 transparent}
#dp-deleted-pop .dp-pop-chip{box-sizing:border-box;min-width:28px;min-height:28px;padding:4px 7px;text-align:center;font-size:13px;line-height:18px;border-radius:999px;flex:none}
