/* complaint.css — หน้ารับเรื่องร้องเรียน / ติดตามสถานะ (ใช้ร่วมกับ detail.css, list.css, board.css) */
.cm-tabs{margin:0 0 20px;border-bottom:2px solid var(--line,#e5e7eb)}
.cm-tabs ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px}
.cm-tabs a{display:block;padding:10px 16px;border-radius:10px 10px 0 0;color:inherit;text-decoration:none;font-weight:600;font-size:.95rem}
.cm-tabs a:hover{background:rgba(0,0,0,.05)}
.cm-tabs a.is-on{background:var(--brand,#0f766e);color:#fff}
.cm-tabs a:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}

.cm-consent{display:flex;gap:10px;align-items:flex-start;font-weight:400;line-height:1.5;cursor:pointer}
.cm-consent input{margin-top:5px;flex:0 0 auto;width:18px;height:18px}
.cm-ferr{display:block;margin-top:6px;color:#b42318;font-weight:600;white-space:pre-line}
.cm-ok{display:block;margin-top:6px;color:#067647}

/* หน้าแจ้งผลสำเร็จ */
.cm-done{text-align:center;padding:12px 0}
.cm-done-ico{display:inline-block;color:#067647;margin-bottom:8px}
.cm-ref{display:inline-flex;flex-direction:column;gap:4px;margin:16px auto;padding:14px 28px;border:2px dashed var(--brand,#0f766e);border-radius:14px;background:rgba(15,118,110,.06)}
.cm-ref span{font-size:.9rem;opacity:.8}
.cm-ref b{font-size:1.5rem;letter-spacing:.06em;user-select:all;word-break:break-all}

/* หน้าติดตามสถานะ */
.cm-track{max-width:560px}
.cm-result{margin-top:22px;padding:18px 20px;border:1px solid var(--line,#e5e7eb);border-radius:14px;background:#fff}
.cm-result h2{margin:0 0 12px;font-size:1.15rem}
.cm-dl{display:grid;grid-template-columns:max-content 1fr;gap:8px 18px;margin:0 0 16px}
.cm-dl dt{font-weight:600;opacity:.75}
.cm-dl dd{margin:0}
.cm-badge{display:inline-block;padding:3px 12px;border-radius:999px;font-weight:700;font-size:.9rem}
.cm-s-wait{background:#fef3c7;color:#92400e}
.cm-s-doing{background:#dbeafe;color:#1e40af}
.cm-s-done{background:#dcfce7;color:#166534}
.cm-s-reject{background:#f3f4f6;color:#374151}
p.cm-reject{padding:12px 14px;border-radius:10px;margin:0 0 12px;background:#f3f4f6;color:#374151}
.cm-steps{list-style:none;margin:0 0 14px;padding:0;display:flex;gap:6px}
.cm-steps li{flex:1;text-align:center;padding:10px 6px;border-radius:10px;background:#f3f4f6;color:#6b7280;font-size:.9rem}
.cm-steps li.is-past{background:#dcfce7;color:#166534}
.cm-steps li.is-now{background:var(--brand,#0f766e);color:#fff;font-weight:700}
@media (max-width:560px){
  .cm-dl{grid-template-columns:1fr;gap:2px}
  .cm-dl dd{margin-bottom:10px}
  .cm-steps{flex-direction:column}
  .cm-tabs a{padding:8px 10px;font-size:.88rem}
}
