/* rw.css — ตัวแก้ไขรายงานวิจัย */
@counter-style rw-thai-letters{system:alphabetic;symbols:ก ข ค ง จ ฉ ช ซ ฌ ญ ฎ ฏ ฐ ฑ ฒ ณ ด ต ถ ท ธ น บ ป ผ ฝ พ ฟ ภ ม ย ร ล ว ศ ษ ส ห ฬ อ ฮ;suffix:". "}
.rw-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;vertical-align:baseline}
.rw-dot.lg{width:16px;height:16px;margin:0}
.rw-tb{position:sticky;top:0;z-index:20;background:#f8fafc;border:1px solid var(--border,#dfe3ea);border-radius:10px;padding:6px 8px;margin-bottom:8px}
.rw-row{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:3px 0}
.rw-b{min-width:30px;height:30px;border:1px solid transparent;background:transparent;border-radius:6px;font-size:14px;color:#1f2937;cursor:pointer;padding:0 6px;line-height:1}
.rw-b:hover{background:#e8eef6}.rw-b.on{background:#dbe7f5;border-color:#9db8d9}
.rw-b small{font-size:10px;display:block;line-height:1}
.rw-sel-i{height:30px;font-size:12px;border:1px solid var(--border,#dfe3ea);border-radius:6px;background:#fff;padding:0 4px}
.rw-num{width:46px;height:30px;font-size:12px;border:1px solid var(--border,#dfe3ea);border-radius:6px;padding:0 4px}
.rw-sep{width:1px;height:22px;background:#d5dbe4;margin:0 4px}
.rw-wrap{background:#e5e9ef;padding:14px 6px;border-radius:10px;overflow-x:auto}
.rw-paper{width:21cm;min-height:29.7cm;margin:0 auto;background:#fff;box-shadow:0 1px 6px rgba(0,0,0,.18);box-sizing:border-box;outline:none;line-height:1.2;color:#000;word-wrap:break-word}
.rw-paper p,.rw-paper h1,.rw-paper h2,.rw-paper h3,.rw-paper h4{margin:0}
.rw-paper ol,.rw-paper ul{margin:0;padding-left:1.5cm}
.rw-paper img{max-width:100%;cursor:pointer}.rw-paper img.rw-sel{outline:2px solid #2563eb}
.rw-paper table{border-collapse:collapse;width:100%;table-layout:fixed;margin:0 0 6pt}
.rw-paper td,.rw-paper th{padding:2pt 4pt;vertical-align:middle;min-width:20px;word-wrap:break-word}
.rw-paper table[data-bd="full"] td,.rw-paper table[data-bd="full"] th{border:1px solid #000}
.rw-paper table[data-bd="none"] td,.rw-paper table[data-bd="none"] th{border:1px dashed #d1d5db}
.rw-paper table[data-bd="h"]{border-top:2px solid #000;border-bottom:2px solid #000}.rw-paper table[data-bd="h"] th{border-bottom:1px solid #000}
.rw-paper div.pb{border-top:2px dashed #94a3b8;margin:10px 0;position:relative;height:0}
.rw-paper div.pb::after{content:'ตัวแบ่งหน้า';position:absolute;right:0;top:-9px;background:#fff;font:11px sans-serif;color:#64748b;padding:0 4px}
.rw-paper [data-pb="1"]{border-top:2px dashed #cbd5e1;padding-top:6px;position:relative}
.rw-paper [data-pb="1"]::before{content:'ขึ้นหน้าใหม่';position:absolute;right:0;top:-9px;background:#fff;font:11px sans-serif;color:#64748b;padding:0 4px;text-indent:0}
.rw-paper[contenteditable="true"]:focus{box-shadow:0 0 0 2px #93c5fd,0 1px 6px rgba(0,0,0,.18)}
.rw-guide{background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:6px 10px}
.rw-cm{border-left:3px solid #94a3b8;background:#f8fafc;padding:6px 10px;margin-bottom:6px;border-radius:4px;font-size:13px}
.rw-cm.staff{border-left-color:#f59e0b;background:#fffbeb}
.rw-paper,.rw-paper p,.rw-paper h1,.rw-paper h2,.rw-paper h3,.rw-paper h4,.rw-paper li,.rw-paper td,.rw-paper th{color:#000 !important;font-family:inherit;letter-spacing:normal}
.rw-paper h1,.rw-paper h2,.rw-paper h3,.rw-paper h4{font-family:inherit;text-transform:none}
.rw-paper h1[data-st="divider"]{padding:5cm 0 !important;border-top:1px dashed #cbd5e1;border-bottom:1px dashed #cbd5e1}
.rw-final{border-radius:10px;padding:10px 14px;margin-bottom:10px;font-size:14px}
