#khungTrang { position: relative; display: inline-block; background: #fff; box-shadow: 0 1px 8px rgb(0 0 0/.35); max-width: 100%; }
#phu { position: absolute; inset: 0; overflow: hidden; font-family: "PDFFont", sans-serif; }
#phu .o { position: absolute; box-sizing: border-box; margin: 0; padding: 0 3px; font: inherit; color: #0b2a7a; border: 1px dashed transparent; background: transparent; }
body.sang #phu .o { background: rgb(255 236 140 / .45); border-color: #d9a400; }
#phu input[type=text], #phu textarea, #phu select { width: auto; border-radius: 2px; }
#phu textarea { resize: none; padding-top: 2px; line-height: 1.2; }
#phu input[type=checkbox], #phu input[type=radio] { accent-color: var(--nhan); cursor: pointer; }
#phu .o:focus { outline: 2px solid var(--nhan); background: #fff; }
#phu .moi { border: 1.5px solid #7c3aed !important; background: rgb(124 58 237 / .08) !important; }
#phu .ve { position: absolute; border: 2px dashed var(--nhan); background: rgb(11 107 203 / .1); pointer-events: none; }
#khungTrang.dangVe, #khungTrang.dangVe * { cursor: crosshair !important; }
.dsO { max-height: 340px; overflow: auto; }
.dsO .muc { display: flex; gap: 6px; align-items: center; padding: 4px 6px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.dsO .muc:hover { background: #eef4ff; }
.dsO .muc.xong::before { content: "✓"; color: #1a7f37; font-weight: 700; }
.dsO .muc:not(.xong)::before { content: "○"; color: #99a; }
.dsO .muc .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsO .muc .tr { color: #667; font-size: 12px; }
.dsO .muc .xoaO { margin: 0; padding: 0 6px; background: none; color: #c0392b; border: 0; font-size: 16px; }
#khungTrang.dangVe .o { pointer-events: none; }

#phu .hopMoi { position: absolute; }
#phu .hopMoi .o { position: absolute; }
#phu .cham { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: #fff; border: 2px solid #7c3aed; border-radius: 2px; z-index: 2; }
#phu .cham.nw { left: 0; top: 0; cursor: nwse-resize; } #phu .cham.n { left: 50%; top: 0; cursor: ns-resize; } #phu .cham.ne { left: 100%; top: 0; cursor: nesw-resize; }
#phu .cham.e { left: 100%; top: 50%; cursor: ew-resize; } #phu .cham.se { left: 100%; top: 100%; cursor: nwse-resize; } #phu .cham.s { left: 50%; top: 100%; cursor: ns-resize; }
#phu .cham.sw { left: 0; top: 100%; cursor: nesw-resize; } #phu .cham.w { left: 0; top: 50%; cursor: ew-resize; }
#phu .dichuyen { position: absolute; left: -2px; top: -22px; width: 22px; height: 20px; background: #7c3aed; color: #fff; border-radius: 4px; text-align: center; font: 14px/20px system-ui; cursor: move; z-index: 2; touch-action: none; }
#phu .cham { touch-action: none; }
#khungTrang.dangVe .hopMoi { pointer-events: none; }
#phu .hopMoi.chon { outline: 2px solid #7c3aed; outline-offset: 2px; }
