/* narzędzia PDF cz. 2: edytor, podpis, Word, Excel, XML */
.file-icon.t2-word{background:#2b579a}.file-icon.t2-excel{background:#1d7a45}.file-icon.t2-xml{background:#7c3aed}
.t2-add{align-self:flex-start;margin-top:4px}
.t2-sheetlist{display:flex;flex-wrap:wrap;gap:8px}
.t2-sheet{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #fecdd3;border-radius:10px;background:#fff;font-size:14px;cursor:pointer;color:#0b2545}
.t2-sheet input{accent-color:#E31C23;width:16px;height:16px}
/* edytor */
.converter.tool.ed-on{max-width:1000px}
.ed-wrap{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
.ed-tb{position:sticky;top:72px;z-index:30;display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;justify-content:space-between;padding:8px;background:#fff;border:1px solid #fde2e4;border-radius:16px;box-shadow:0 6px 18px rgba(15,23,42,.08)}
.ed-tb-g{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.ed-tb-btn{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:58px;padding:6px 6px 5px;border:1px solid transparent;border-radius:12px;background:none;color:#0b2545;font:inherit;font-size:11.5px;font-weight:600;cursor:pointer;touch-action:manipulation}
.ed-tb-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ed-tb-btn:hover{background:#fff5f5}
.ed-tb-btn.on{background:#fef2f2;border-color:#E31C23;color:#c41820}
.ed-props{gap:6px}
.ed-size{height:34px;border:1px solid #fecdd3;border-radius:10px;padding:0 6px;font:inherit;font-size:13.5px;color:#0b2545;background:#fff}
.ed-sw{width:28px;height:28px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #d6dbe3;cursor:pointer;padding:0;touch-action:manipulation}
.ed-sw.on{box-shadow:0 0 0 2px #E31C23}
.ed-bold{width:34px;height:34px;border-radius:10px;background:#fff;font-weight:800;color:#0b2545;font-size:15px;box-shadow:0 0 0 1px #fecdd3;border:0}
.ed-bold.on{background:#0b2545;color:#fff}
.ed-hint{font-size:13.5px;color:#3d4f66;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:9px 12px;line-height:1.45}
.ed-sigs{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ed-sigs[hidden]{display:none}
.ed-sigs-l{font-size:13px;color:#5a6b80;font-weight:600}
.ed-sigchip{height:44px;padding:4px 10px;border:1px dashed #E31C23;border-radius:10px;background:#fff;cursor:pointer}
.ed-sigchip img{height:100%;width:auto;display:block}
.ed-pages{display:flex;flex-direction:column;align-items:center;gap:18px;padding:16px 0;background:#eef1f5;border-radius:16px;max-height:78vh;overflow:auto;overscroll-behavior:contain}
.ed-page{position:relative;background:#fff;box-shadow:0 2px 10px rgba(15,23,42,.18);flex-shrink:0;max-width:100%}
.ed-cv{position:absolute;inset:0;width:100%;height:100%;display:block}
.ed-txl,.ed-layer{position:absolute;inset:0}
.ed-layer{z-index:2}
.ed-txl{z-index:3;pointer-events:none}
[data-edmode=edittext] .ed-txl{pointer-events:auto}
.ed-ti{position:absolute;border-radius:2px;cursor:text;outline:1px dashed rgba(29,63,187,.35);background:rgba(29,63,187,.04)}
.ed-ti:hover{background:rgba(29,63,187,.14);outline:1.5px solid #1d3fbb}
.ed-pno{position:absolute;left:0;right:0;bottom:-17px;text-align:center;font-size:11px;color:#8494a8;pointer-events:none}
[data-edmode=text] .ed-layer,[data-edmode=place] .ed-layer{cursor:crosshair}
[data-edmode=white] .ed-layer,[data-edmode=hl] .ed-layer,[data-edmode=rect] .ed-layer,[data-edmode=draw] .ed-layer{cursor:crosshair;touch-action:none}
.ed-obj{position:absolute;touch-action:none;box-sizing:border-box;text-align:left}
.ed-obj.sel{outline:1.5px dashed #E31C23;outline-offset:2px}
.ed-text{min-width:6px;cursor:move}
.ed-tx{font-family:PSans,Arial,sans-serif;line-height:1.2;white-space:pre;outline:none;cursor:text;min-width:6px;min-height:1em;padding:0}
.ed-tx:empty:before{content:"Wpisz tekst";color:#9aa6b6}
.ed-text.editing{outline:1.5px solid #1d3fbb;outline-offset:2px;background:rgba(255,255,255,.4)}
.ed-white{background:#fff;box-shadow:inset 0 0 0 1px rgba(15,23,42,.08)}
.ed-white.sel{box-shadow:none}
.ed-hl{background:rgba(255,230,0,.4);mix-blend-mode:multiply}
.ed-rect{border:2px solid #111;background:transparent}
.ed-ink svg{width:100%;height:100%;display:block;overflow:visible}
.ed-image img{width:100%;height:100%;display:block;pointer-events:none;user-select:none}
.ed-obj:not(.ed-tmp){cursor:move}
.ed-rz,.ed-x,.ed-move{position:absolute;display:none;z-index:2}
.ed-obj.sel .ed-rz,.ed-obj.sel .ed-x,.ed-obj.sel .ed-move{display:grid;place-items:center}
.ed-rz{right:-9px;bottom:-9px;width:16px;height:16px;background:#fff;border:2px solid #E31C23;border-radius:4px;cursor:nwse-resize}
.ed-x{right:-11px;top:-11px;width:22px;height:22px;border-radius:50%;background:#E31C23;color:#fff;font-size:15px;font-weight:700;line-height:1;cursor:pointer}
.ed-move{left:-24px;top:-2px;width:20px;height:22px;border-radius:6px;background:#E31C23;color:#fff;font-size:12px;cursor:move}
.ed-text .ed-rzt{right:-12px;bottom:-12px}
/* okno podpisu */
.ed-modal{position:fixed;inset:0;z-index:1000;background:rgba(11,37,69,.45);display:grid;place-items:center;padding:16px}
.ed-mbox{width:min(560px,100%);max-height:calc(100vh - 32px);overflow:auto;background:#fff;border-radius:20px;box-shadow:0 20px 60px rgba(0,0,0,.25);padding:18px}
.ed-mhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.ed-mhead b{font-size:18px;color:#0b2545}
.ed-mclose{width:34px;height:34px;border-radius:50%;border:0;background:#f1f5f9;font-size:22px;cursor:pointer;color:#0b2545}
.ed-tabs{display:flex;gap:6px;margin-bottom:12px;background:#f1f5f9;padding:4px;border-radius:12px}
.ed-tabs button{flex:1;border:0;background:none;padding:9px 6px;border-radius:9px;font:inherit;font-size:14px;font-weight:600;color:#3d4f66;cursor:pointer}
.ed-tabs button.on{background:#fff;color:#c41820;box-shadow:0 1px 4px rgba(15,23,42,.12)}
.ed-tab[hidden]{display:none}
.ed-pad{width:100%;display:block;border:2px dashed #fecdd3;border-radius:14px;background:#fff;touch-action:none;cursor:crosshair}
.ed-pad.shake{border-color:#E31C23}
.ed-prow{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:13.5px;color:#5a6b80}
.ed-prow .ed-clear{margin-left:auto}
.ed-fonts{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.ed-font{border:2px solid #e2e8f0;border-radius:12px;background:#fff;padding:8px 14px;font-size:34px;text-align:left;cursor:pointer;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ed-font.on{border-color:#E31C23}
.ed-upprev img{max-width:100%;max-height:140px;margin-top:10px;background:repeating-conic-gradient(#f1f5f9 0 25%,#fff 0 50%) 0 0/16px 16px;border-radius:8px}
.ed-mfoot{margin-top:14px}
.ed-mfoot .btn{width:100%;justify-content:center;text-align:center}
.ed-modal .ed-clear{background:#fff;color:#c41820;border:1px solid #fecdd3;box-shadow:none}
.ed-modal .ed-upbtn{background:#fff;color:#c41820;border:1px solid #fecdd3;box-shadow:none}
@media (max-width:600px){
 .ed-tb{top:60px;padding:6px;gap:6px;flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;-webkit-overflow-scrolling:touch;scrollbar-width:none}
 .ed-tb::-webkit-scrollbar{display:none}
 .ed-tb-g{flex-wrap:nowrap;flex-shrink:0}
 .ed-hint{font-size:12.5px;padding:7px 10px}
 .ed-tb-btn{min-width:48px;font-size:10.5px;padding:5px 3px}
 .ed-tb-btn svg{width:18px;height:18px}
 .ed-pages{max-height:70vh;padding:10px 0}
 .ed-font{font-size:28px}
}
/* karty na stronie głównej */
.tool-ic.t-edit{background:linear-gradient(135deg,#ec4899,#be185d)}
.tool-ic.t-sign{background:linear-gradient(135deg,#0ea5e9,#0369a1)}
.tool-ic.t-word{background:linear-gradient(135deg,#3b82f6,#1e40af)}
.tool-ic.t-excel{background:linear-gradient(135deg,#22c55e,#15803d)}
.tool-ic.t-xml{background:linear-gradient(135deg,#a855f7,#6d28d9)}
