/* DWR Integrity Complaint — หน้าบ้าน (ฟอร์ม + ติดตาม) */

.dwr-ic-app {
    max-width: 960px; margin: 0 auto; padding: 8px 0 40px; font-size: 15px; color: #1f2937;
    /* ฟอนต์ตาม design ใหม่ (WD-307/323/324/325) */
    font-family: 'IBM Plex Sans Thai', 'Prompt', sans-serif;
}

/* card */
.dwr-ic-card { background: #fff; border: 1px solid #e3eaf2; border-radius: 14px; padding: 26px 28px; margin-bottom: 18px; box-shadow: 0 2px 10px rgba(16, 42, 90, .05); }
.dwr-ic-title { margin: 0 0 6px; font-size: 22px; color: #14223f; }
.dwr-ic-section { margin: 22px 0 10px; padding-left: 10px; border-left: 4px solid #14223f; font-size: 16px; color: #14223f; }
.dwr-ic-muted { color: #8a94a3; font-size: 13px; }
.dwr-ic-back { color: #14223f; text-decoration: none; font-weight: 600; }

/* form */
.dwr-ic-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 700px) { .dwr-ic-grid-2 { grid-template-columns: 1fr; } }
.dwr-ic-field { margin-bottom: 14px; }
.dwr-ic-field label { display: block; font-weight: 600; margin-bottom: 6px; color: #22314f; }
.dwr-ic-field input[type="text"], .dwr-ic-field input[type="email"], .dwr-ic-field input[type="search"],
.dwr-ic-field input[type="date"], .dwr-ic-field select, .dwr-ic-field textarea {
    width: 100%; padding: 10px 13px; border: 1px solid #d8dee6; border-radius: 9px;
    font-size: 14px; font-family: inherit; background: #fff; box-sizing: border-box;
}
.dwr-ic-req { color: #d63638; }

/* buttons */
.dwr-ic-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 11px 26px; min-width: 140px; border-radius: 10px; border: 1px solid transparent;
    font-size: 15px; font-weight: 600; font-family: inherit; line-height: 1.5;
    cursor: pointer; text-decoration: none; box-sizing: border-box;
}
.dwr-ic-btn-sm { padding: 7px 16px; min-width: 0; font-size: 13px; }
.dwr-ic-btn-primary { background: #14223f; color: #fff; }
.dwr-ic-btn-primary:hover { background: #0d1830; color: #fff; }
.dwr-ic-btn-secondary { background: #9ca3af; color: #fff; }
.dwr-ic-btn-secondary:hover { background: #6b7280; color: #fff; }
.dwr-ic-btn-danger { background: #b32d2e; color: #fff; }
.dwr-ic-btn-danger:hover { background: #8a2424; color: #fff; }
.dwr-ic-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* dropzone */
.dwr-ic-dropzone { border: 2px dashed #c6ccd4; border-radius: 12px; padding: 28px 16px; text-align: center; background: #fbfcfe; }
.dwr-ic-dropzone.is-drag { border-color: #14223f; background: #eef4fc; }
.dwr-ic-dropzone input[type="file"] { display: none; }
.dwr-ic-dz-main { margin: 0; font-size: 12px; color: #888888; }
.dwr-ic-dz-or { margin: 6px 0 10px; font-size: 11px; color: #aaaaaa; }
.dwr-ic-file-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dwr-ic-file-list span { padding: 5px 12px; background: #f2f5f9; border: 1px solid #e0e6ee; border-radius: 8px; font-size: 13px; }
.dwr-ic-file-list span.dwr-ic-file-count { background: none; border: 0; color: #6b7280; font-size: 12px; align-self: center; }

/* consent */
.dwr-ic-consent {
    display: flex; gap: 14px; align-items: flex-start;
    margin: 24px 0 8px; padding: 20px 4px;
    border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0;
    font-size: 16px; line-height: 1.7; color: #2a5f9e;
}
.dwr-ic-consent input {
    margin-top: 4px; width: 20px; height: 20px; flex: 0 0 auto;
    accent-color: #0c2d5e; cursor: pointer;
}

/* alerts / success */
.dwr-ic-alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.dwr-ic-alert-error { background: #fdeaea; color: #b32d2e; border: 1px solid #f3c2c3; }
.dwr-ic-alert-success { background: #e8f5ec; color: #1a7a3c; border: 1px solid #bfe3cb; }
.dwr-ic-success { text-align: center; }
.dwr-ic-reqno { font-size: 26px; font-weight: 700; color: #14223f; letter-spacing: 1px; }

/* meta grid (detail) */
.dwr-ic-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.dwr-ic-meta span { display: block; font-size: 12px; color: #8a94a3; }
.dwr-ic-meta strong { font-size: 15px; }

/* status pills */
.dwr-ic-status { font-weight: 700; }
.dwr-ic-status-received { color: #2271b1; }
.dwr-ic-status-investigating { color: #b45309; }
.dwr-ic-status-proposing { color: #e0812f; }
.dwr-ic-status-notifying { color: #8a6d1f; }
.dwr-ic-status-completed { color: #1a7a3c; }
.dwr-ic-status-not_corruption { color: #6b7280; }
.dwr-ic-status-cancelled { color: #b32d2e; }
/* WD-471: สองขั้นที่เพิ่งเพิ่มฝั่งจริยธรรม — ถ้าไม่ใส่สีจะกลายเป็นสีตัวอักษรปกติ
   อ่านไม่ออกว่าเป็นสถานะ ต่างจากอีก 6 ขั้นที่มีสีอยู่แล้ว
   ไล่โทนตามลำดับขั้น: เสนอ(ส้ม) → สั่งการ(ม่วง) → ตรวจสอบ(น้ำตาล) → เสนอความเห็น(คราม) */
.dwr-ic-status-head_order { color: #7b61e8; }
.dwr-ic-status-opinion { color: #3f6fd8; }

/* search + table */
.dwr-ic-search { display: flex; gap: 10px; flex-wrap: wrap; }
.dwr-ic-search input[type="search"] { flex: 1 1 280px; padding: 10px 13px; border: 1px solid #d8dee6; border-radius: 9px; font-size: 14px; }
.dwr-ic-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dwr-ic-table th, .dwr-ic-table td { padding: 10px 12px; border-bottom: 1px solid #eef1f5; text-align: left; vertical-align: top; }
.dwr-ic-table th { background: #f3f6fa; color: #22314f; }

/* timeline */
.dwr-ic-timeline { list-style: none; margin: 0; padding: 0; }
.dwr-ic-timeline li { position: relative; padding: 0 0 20px 26px; border-left: 2px solid #d8dee6; margin-left: 8px; }
.dwr-ic-timeline li:last-child { border-left-color: transparent; }
.dwr-ic-timeline li::before {
    content: ""; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px;
    border-radius: 50%; background: #9ca3af; border: 2px solid #fff; box-shadow: 0 0 0 1px #9ca3af;
}
.dwr-ic-timeline li.is-current::before { background: #e08519; box-shadow: 0 0 0 1px #e08519; }
.dwr-ic-tl-title { font-weight: 700; color: #22314f; }
.dwr-ic-tl-date { font-size: 12px; color: #8a94a3; margin: 2px 0 6px; }
.dwr-ic-tl-msg { background: #f0f6fd; border-radius: 8px; padding: 10px 12px; font-size: 13.5px; }
.dwr-ic-tl-files { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.dwr-ic-tl-files a { text-decoration: none; }
.dwr-ic-badge { background: #fdf1dc; color: #b45309; font-size: 11px; padding: 2px 8px; border-radius: 20px; margin-left: 6px; font-weight: 600; }

/* cancel card */
.dwr-ic-cancel-card { border-color: #f3c2c3; }

/* ═══ หน้าเลือกประเภทเรื่อง (entry) ═══ */

/* override ธีมเฉพาะหน้านี้ — พื้นหลังขาวเรียบ + ซ่อนหัวข้อซ้ำของธีม ให้ตรง design */
body.dwr-ic-entry-page main.wp-block-group.has-background {
    background: #fff !important;
    background-image: none !important;
}
body.dwr-ic-entry-page main h1.wp-block-post-title { display: none; }
/* spacer ของธีมที่คร่อมหัวข้อเพจ — ซ่อนไม่ให้เหลือช่องว่างลอย */
body.dwr-ic-entry-page main .wp-block-spacer { display: none !important; }
/* แถบโลโก้ "หน่วยงานที่เกี่ยวข้อง" ของธีม — ไม่แสดงบนหน้าระบบร้องเรียน */
body.dwr-ic-entry-page .dwr-related-organizations-frame,
body.dwr-ic-entry-page .dwr-related-organizations { display: none !important; }

.dwr-ic-entry { max-width: 1336px; margin: 0 auto; padding: 28px 16px 60px; font-family: inherit; }
.dwr-ic-entry-title { font-size: 24px; font-weight: 400; color: #0c2d5e; margin: 0 0 6px; }
.dwr-ic-entry-sub { color: #5b7fa6; font-size: 14px; line-height: 1.8; margin: 0 0 32px; }
.dwr-ic-entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .dwr-ic-entry-grid { grid-template-columns: 1fr; gap: 22px; } }
.dwr-ic-entry-col-label { font-size: 14px; font-weight: 300; color: #90b4d4; margin-bottom: 12px; }

/* การ์ดประเภทเรื่อง */
.dwr-ic-typecard {
    display: flex; align-items: flex-start; gap: 22px; width: 100%; text-align: left;
    background: #f3fbff; border: 1px solid #d0e4f4; border-radius: 14px;
    padding: 24px 26px; margin-bottom: 16px; cursor: pointer; font-family: inherit;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.dwr-ic-typecard:hover { border-color: #b8d0e8; box-shadow: 0 3px 12px rgba(16, 42, 90, .08); }
.dwr-ic-typecard-no { font-size: 24px; font-weight: 400; color: #b8d0e8; line-height: 1.1; }
.dwr-ic-typecard-body { flex: 1; }
.dwr-ic-typecard-body strong { display: block; font-size: 16px; font-weight: 600; color: #0c2d5e; margin-bottom: 6px; }
.dwr-ic-typecard-body span { font-size: 14px; color: #5b7fa6; line-height: 1.7; }
.dwr-ic-typecard-arrow { color: #b8d0e8; font-size: 16px; align-self: center; }
.dwr-ic-typecard.is-active { background: #0c2d5e; border-color: #1565c0; }
.dwr-ic-typecard.is-active .dwr-ic-typecard-no { color: #fff; }
.dwr-ic-typecard.is-active .dwr-ic-typecard-body strong { color: #fff; }
.dwr-ic-typecard.is-active .dwr-ic-typecard-body span { color: #fff; }
.dwr-ic-typecard.is-active .dwr-ic-typecard-arrow { color: #b8d0e8; }

/* พาเนลการเปิดเผยตัวตน */
.dwr-ic-disclose-empty {
    border: 1px solid #d0e4f4; border-radius: 14px; background: #f3fbff;
    min-height: 440px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #90b4d4; text-align: center; font-size: 13px; line-height: 1.9;
}
.dwr-ic-disclose-arrow { font-size: 28px; margin-bottom: 10px; color: #b8d0e8; }
.dwr-ic-disclose-panel { border: 1px solid #b8d0e8; border-radius: 14px; background: #f7fbff; overflow: hidden; }
.dwr-ic-disclose-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
    background: #f3fbff; border-bottom: 2px solid #d0e4f4; padding: 20px 24px 16px;
}
.dwr-ic-disclose-head strong { display: block; font-size: 16px; font-weight: 400; color: #0c2d5e; margin-bottom: 4px; }
.dwr-ic-disclose-note { font-size: 14px; color: #5b7fa6; }
.dwr-ic-disclose-badge { background: #e3f0fb; color: #1565c0; border-radius: 18px; padding: 6px 18px; font-size: 14px; white-space: nowrap; }

/* ตัวเลือกเปิดเผย/ปกปิด/ติดตาม */
.dwr-ic-opt {
    display: flex; gap: 16px; align-items: flex-start; background: #f3fbff;
    border-left: 4px solid transparent; border-bottom: 1px solid #d0e4f4; border-radius: 0;
    padding: 22px 24px; margin-bottom: 0; cursor: pointer; position: relative;
}
.dwr-ic-opt:last-of-type { border-bottom: 0; }
.dwr-ic-opt input { position: absolute; opacity: 0; pointer-events: none; }
.dwr-ic-opt-radio {
    width: 22px; height: 22px; border: 2px solid #b8d0e8; border-radius: 50%;
    flex: 0 0 22px; margin-top: 2px; position: relative; background: transparent;
}
.dwr-ic-opt.is-selected { background: #e3f0fb; border-left-color: #1565c0; }
.dwr-ic-opt.is-selected .dwr-ic-opt-radio { border-color: #1565c0; background: #1565c0; }
.dwr-ic-opt.is-selected .dwr-ic-opt-radio::after {
    content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff;
}
.dwr-ic-opt-body strong { display: block; font-size: 16px; font-weight: 400; color: #0c2d5e; margin-bottom: 4px; }
.dwr-ic-opt-body > span { font-size: 14px; color: #5b7fa6; line-height: 1.7; }
.dwr-ic-chip {
    display: inline-block; font-style: normal; font-size: 11px; border-radius: 16px;
    padding: 4px 14px; margin-top: 10px;
}
.dwr-ic-chip-green { background: #e8f5ee; color: #1b6b3a; }
.dwr-ic-chip-purple { background: #ede7f6; color: #4527a0; }

/* ปุ่มดำเนินการต่อ */
.dwr-ic-entry-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.dwr-ic-continue {
    background: #0c2d5e; color: #fff; border: 0; border-radius: 10px;
    padding: 16px 28px; font-size: 16px; font-weight: 400; cursor: pointer; font-family: inherit;
}
.dwr-ic-continue:hover { background: #0a2549; }
.dwr-ic-continue:disabled { opacity: .55; cursor: not-allowed; }

/* ═══ modal เข้าสู่ระบบ ═══ */
body.dwr-ic-modal-open { overflow: hidden; }
/* attribute hidden ต้องชนะ display ที่กำหนดไว้เสมอ — modal เปิดเมื่อสั่งเท่านั้น */
.dwr-ic-entry [hidden],
.dwr-ic-member [hidden],
.dwr-ic-register [hidden],
.dwr-ic-modal-backdrop[hidden] { display: none !important; }
.dwr-ic-modal-backdrop {
    position: fixed; inset: 0; background: rgba(13, 24, 48, .55); z-index: 99999;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.dwr-ic-modal { background: #f7fbff; border-radius: 16px; width: 100%; max-width: 613px; max-height: 92vh; overflow: auto; }
.dwr-ic-modal-head { background: #0c2d5e; color: #fff; border-radius: 16px 16px 0 0; padding: 22px 30px 26px; position: relative; }
.dwr-ic-modal-chip { display: inline-block; background: rgba(255, 255, 255, .16); border-radius: 16px; padding: 6px 18px; font-size: 12px; margin-bottom: 14px; }
.dwr-ic-modal-head h2 { color: #fff; font-size: 22px; font-weight: 400; margin: 0 0 6px; }
.dwr-ic-modal-head p { color: #fff; font-size: 13px; margin: 0; opacity: .92; }
.dwr-ic-modal-close {
    position: absolute; top: 20px; right: 22px; background: none; border: 0; color: #fff;
    font-size: 20px; line-height: 1; cursor: pointer; padding: 4px;
}
.dwr-ic-modal-close:hover { opacity: .8; }
.dwr-ic-modal-body { padding: 26px 30px 20px; background: #f7fbff; }
.dwr-ic-modal-error { background: #fdecec; border: 1px solid #f3c2c3; color: #b32d2e; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.dwr-ic-modal-label { display: block; font-size: 12px; color: #2c4a72; margin: 0 0 6px; font-weight: 400; }
.dwr-ic-modal-label-row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.dwr-ic-modal-label-row a { font-size: 12px; color: #1565c0; text-decoration: none; }
.dwr-ic-modal-body input[type="text"], .dwr-ic-modal-body input[type="password"] {
    width: 100%; box-sizing: border-box; border: 1px solid #b8d0e8; border-radius: 10px;
    padding: 14px 16px; font-size: 14px; background: #fff; font-family: inherit; color: #1a1a1a;
}
.dwr-ic-modal-body input::placeholder { color: #90b4d4; }
.dwr-ic-modal-submit {
    width: 100%; background: #0c2d5e; color: #fff; border: 0; border-radius: 10px;
    padding: 16px; font-size: 14px; font-weight: 400; cursor: pointer; margin-top: 20px; font-family: inherit;
}
.dwr-ic-modal-submit:hover { background: #0a2549; }
.dwr-ic-modal-or { text-align: center; color: #5b7fa6; font-size: 20px; margin: 18px 0; }
.dwr-ic-thaid-btn {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    width: 100%; box-sizing: border-box; margin: 0 auto; background: #fff; border: 1px solid #b8d0e8; border-radius: 10px;
    padding: 8px 14px; text-decoration: none; color: #183354; font-size: 16px;
}
.dwr-ic-thaid-btn:hover { border-color: #90b4d4; color: #183354; }
.dwr-ic-thaid-btn img { border-radius: 8px; }
.dwr-ic-modal-anon { background: #eef4fb; border-radius: 10px; padding: 14px 18px; font-size: 12px; color: #5b7fa6; margin-top: 18px; line-height: 1.9; }
.dwr-ic-modal-anon a { color: #1565c0; text-decoration: none; }
.dwr-ic-modal-foot { padding: 16px 30px; border-top: 1px solid #d0e4f4; font-size: 13px; color: #5b7fa6; }
.dwr-ic-modal-foot a { color: #1565c0; text-decoration: none; }
.dwr-ic-modal-foot a { color: #2b6cd4; text-decoration: none; }

/* ═══ หน้าสมัครสมาชิก (register) ═══ */
.dwr-ic-register { max-width: 1336px; margin: 0 auto; padding: 34px 16px 60px; }
.dwr-ic-register [hidden] { display: none !important; }
.dwr-ic-register-title { text-align: center; font-size: 24px; font-weight: 700; color: #0c2d5e; margin: 0 0 6px; }
.dwr-ic-register-sub { text-align: center; color: #5b7fa6; font-size: 14px; margin: 0 0 24px; }
.dwr-ic-register-card {
    background: #f7fbff; border: 1px solid #e2e2e2; border-radius: 20px;
    padding: 34px 40px 40px;
}
.dwr-ic-reg-section {
    font-size: 13px; color: #8a94a3; font-weight: 400;
    border-bottom: 1px solid #d0e4f4; padding-bottom: 8px; margin: 24px 0 18px;
}
.dwr-ic-register-card > .dwr-ic-reg-section:first-child { margin-top: 0; }
.dwr-ic-reg-section-hint { font-weight: 400; color: #a3adbb; margin-left: 6px; }
.dwr-ic-reg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: end; }
.dwr-ic-reg-row-name { grid-template-columns: 190px 1fr 1fr; }
@media (max-width: 800px) { .dwr-ic-reg-row, .dwr-ic-reg-row-name { grid-template-columns: 1fr; } }
.dwr-ic-register .dwr-ic-field input, .dwr-ic-register .dwr-ic-field select, .dwr-ic-register .dwr-ic-field textarea {
    width: 100%; padding: 12px 16px; border: 1px solid #d0d4df; border-radius: 10px;
    font-size: 14px; font-family: inherit; background: #fff; box-sizing: border-box;
}
.dwr-ic-register .dwr-ic-field ::placeholder { color: #90b4d4; }
.dwr-ic-register .dwr-ic-field label { font-weight: 400; font-size: 13px; color: #666666; }
.dwr-ic-reg-strong { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #22314f; padding-bottom: 22px; }
.dwr-ic-reg-strong input { margin-top: 3px; }
.dwr-ic-reg-hints { list-style: none; margin: 0 0 14px; padding: 0; font-size: 13px; color: #5c6a7d; }
.dwr-ic-reg-hints li { padding-left: 18px; position: relative; margin-bottom: 4px; }
.dwr-ic-reg-hints li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #e0812f; }
.dwr-ic-passfield { position: relative; }
.dwr-ic-passfield input { padding-right: 44px !important; }
.dwr-ic-pass-toggle {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: 0; cursor: pointer; color: #8a94a3; padding: 4px; line-height: 1;
}
.dwr-ic-pass-toggle:hover { color: #22314f; }
.dwr-ic-register .dwr-ic-consent { font-size: 13.5px; }
.dwr-ic-register .dwr-ic-consent a { color: #2b6cd4; text-decoration: none; font-weight: 600; }
.dwr-ic-reg-captcha { display: flex; justify-content: center; margin: 14px 0; }
.dwr-ic-reg-submit {
    display: block; width: 100%; margin: 18px auto 0; background: #1565c0; color: #fff;
    border: 0; border-radius: 30px; padding: 16px; font-size: 15px; font-weight: 600;
    cursor: pointer; font-family: inherit;
}
.dwr-ic-reg-submit:hover { background: #12569f; }
.dwr-ic-reg-or { text-align: center; color: #5b7fa6; font-size: 13.5px; margin: 16px 0 6px; }
.dwr-ic-reg-login { text-align: center; margin: 0; }
.dwr-ic-reg-login a { color: #1565c0; text-decoration: none; font-size: 14px; }

/* modal นโยบายความเป็นส่วนตัว */
.dwr-ic-policy-modal {
    background: #f7fbff; border-radius: 16px; width: 100%; max-width: 1180px; max-height: 88vh;
    overflow: auto; position: relative; padding: 44px 60px 44px;
}
.dwr-ic-policy-modal h2 { text-align: center; color: #0c2d5e; font-size: 19px; font-weight: 700; margin: 0 0 24px; }
.dwr-ic-policy-close {
    position: absolute; top: 20px; right: 26px; background: none; border: 0;
    color: #1565c0; font-size: 24px; line-height: 1; cursor: pointer; padding: 4px;
}
.dwr-ic-policy-body { font-size: 15px; color: #2c4a72; line-height: 1.95; }
.dwr-ic-policy-body p { text-indent: 2.5em; margin: 0 0 14px; }
.dwr-ic-policy-body ol { margin: 0 0 14px 1.4em; padding: 0; }
.dwr-ic-policy-body ol li { margin-bottom: 4px; }

/* ═══ ฟอร์มสมาชิก หลัง login (design 5.2) — ค่าตรงจากไฟล์ Figma ═══ */
.dwr-ic-member { max-width: 1336px; margin: 0 auto; padding: 26px 16px 60px; }
.dwr-ic-member-title { font-size: 24px; font-weight: 400; color: #0c2d5e; margin: 0 0 4px; }
.dwr-ic-member-context { color: #5b7fa6; font-size: 14px; margin: 0 0 18px; }
.dwr-ic-member-profile {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px 90px;
    background: #f7fbff; border: 1px solid #e2e2e2; border-radius: 20px;
    padding: 34px 46px; margin-bottom: 28px;
}
@media (max-width: 800px) { .dwr-ic-member-profile { grid-template-columns: 1fr; } }
.dwr-ic-member-profile h3 { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: #333333; }
.dwr-ic-member-profile dl { margin: 0; }
.dwr-ic-member-profile dl > div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.dwr-ic-member-profile dt { color: #555555; font-size: 16px; font-weight: 400; }
.dwr-ic-member-profile dd { margin: 0; font-weight: 400; color: #1a1a1a; font-size: 16px; text-align: right; }
.dwr-ic-member-form {
    background: #f7fbff; border: 1px solid #e2e2e2; border-radius: 20px; padding: 46px 88px 56px;
}
@media (max-width: 1100px) { .dwr-ic-member-form { padding: 28px 24px 32px; } }

/* radio เรื่องที่แจ้งแบบเรียงลงมา (กลุ่มจริยธรรมตาม design) */
.dwr-ic-member-typerow.dwr-ic-typerow-stack {
    flex-direction: column; align-items: flex-start; gap: 10px;
}

/* เส้นประคั่นระหว่างส่วนของฟอร์มตาม design */
.dwr-ic-divider { border-top: 1px dashed #d8dee6; margin: 24px 0 20px; }
.dwr-ic-member-section { font-size: 16px; color: #1a1a1a; font-weight: 700; margin-bottom: 14px; }
.dwr-ic-typelabel { display: block; margin-bottom: 8px; font-size: 14px; color: #333333; }
.dwr-ic-typelabel .dwr-ic-req { color: #d63638; }
.dwr-ic-member-typerow { display: flex; gap: 26px; margin-bottom: 16px; }
.dwr-ic-member-type { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; }
.dwr-ic-member-form .dwr-ic-field input[type="text"], .dwr-ic-member-form .dwr-ic-field input[type="date"],
.dwr-ic-member-form .dwr-ic-field select, .dwr-ic-member-form .dwr-ic-field textarea {
    background: #fff; border-color: #d0d4df; border-radius: 10px; padding: 11px 14px;
}
.dwr-ic-member-form .dwr-ic-field ::placeholder { color: #999999; }
.dwr-ic-member-warn {
    display: flex; align-items: center; gap: 6px;
    background: #fdf2f0; color: #c0392b; border-radius: 6px;
    font-size: 12px; padding: 7px 12px; margin-bottom: 8px;
}
.dwr-ic-member-warn .dashicons { font-size: 15px; width: 15px; height: 15px; }

/* label ขนาดตาม design (กันธีมขยาย) */
.dwr-ic-member-form .dwr-ic-field label {
    font-size: 13px; font-weight: 400; color: #666666; margin-bottom: 7px;
}
.dwr-ic-member-form .dwr-ic-field input, .dwr-ic-member-form .dwr-ic-field select,
.dwr-ic-member-form .dwr-ic-field textarea { font-size: 13px; }
.dwr-ic-member-type span { font-size: 15px; color: #0c2d5e; }

/* ช่องวันที่ตาม design — สถานะยังไม่เลือก (type=text) แสดงไอคอนปฏิทินขวา */
input.dwr-ic-date[type="text"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px 18px;
}

/* ช่องวันเกิดเหตุฝั่งจริยธรรมกว้าง 369px ตาม design (ฝั่งทุจริตเต็มคอลัมน์) */
.dwr-ic-member-form input.dwr-ic-date--sm { width: 369px; max-width: 100%; }

/* ปุ่มเลือกไฟล์ใน dropzone — กลุ่มทุจริตข้อความฟ้า / กลุ่มจริยธรรม (--plain) ข้อความเทา ตาม design */
.dwr-ic-dz-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid #c0c4d0; border-radius: 6px;
    color: #1a5fa8; font-size: 12px; font-weight: 400; font-family: inherit;
    padding: 7px 26px; cursor: pointer;
}
.dwr-ic-dz-btn:hover { background: #f3f5f8; }
.dwr-ic-dz-btn--plain { color: #444444; font-size: 11px; }

/* ปุ่มยกเลิก/ส่งเรื่องร้องเรียน อยู่นอกการ์ดชิดขวาตาม design Figma */
.dwr-ic-member-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 22px; }
.dwr-ic-member-actions .dwr-ic-btn-primary { border-radius: 10px; padding: 13px 40px; font-size: 13px; }
.dwr-ic-btn-cancel {
    display: inline-flex; align-items: center; justify-content: center; padding: 13px 40px;
    background: #fff; border: 1px solid #14223f; border-radius: 10px;
    color: #14223f; text-decoration: none; font-size: 13px; font-weight: 600;
}
.dwr-ic-btn-cancel:hover { background: #14223f; color: #fff; }
.dwr-ic-btn-back {
    display: inline-flex; align-items: center; gap: 6px; padding: 11px 22px;
    background: #fff; border: 1px solid #d0d7e1; border-radius: 10px;
    color: #444444; text-decoration: none; font-size: 13px; font-weight: 400;
}
.dwr-ic-btn-back:hover { background: #f3f6fa; color: #1d2939; }

/* ═══ ฟอร์มปกปิดตัวตน (design 6.x) ═══ */
.dwr-ic-brandbar {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid #dbe7f3; border-radius: 12px;
    padding: 12px 18px; margin-bottom: 20px;
}
.dwr-ic-brandbar img { border-radius: 50%; }
.dwr-ic-brandbar strong { display: block; color: #1d5bbf; font-size: 15.5px; }
.dwr-ic-brandbar span { font-size: 12px; color: #8a94a3; }
.dwr-ic-anon-typerow { flex-direction: column; gap: 8px; align-items: flex-start; }

/* dialog กลางจอ (ยืนยัน/สำเร็จ) */
.dwr-ic-dialog {
    background: #fff; border-radius: 16px; width: 100%; max-width: 620px;
    padding: 44px 48px 36px; text-align: center; position: relative;
}
.dwr-ic-dialog-close {
    position: absolute; top: 18px; right: 22px; background: none; border: 0;
    color: #90a4bd; font-size: 22px; line-height: 1; cursor: pointer;
}
.dwr-ic-dialog-close:hover { color: #1d2939; }
.dwr-ic-dialog-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%; margin-bottom: 18px;
}
.dwr-ic-dialog-icon .dashicons { font-size: 32px; width: 32px; height: 32px; color: #fff; }
.dwr-ic-dialog-icon-warn { background: #f5a623; box-shadow: 0 0 0 8px #fdeccb; }
.dwr-ic-dialog-icon-ok { background: #2e9e5b; box-shadow: 0 0 0 8px #d6efdf; }
.dwr-ic-dialog-text { font-size: 16px; color: #0c2d5e; line-height: 1.8; margin: 6px 0 26px; }
.dwr-ic-dialog-title { font-size: 18px; font-weight: 700; color: #0c2d5e; margin: 0 0 4px; }
.dwr-ic-dialog-sub { color: #5b7fa6; font-size: 13px; margin: 0 0 18px; }
.dwr-ic-dialog-code { background: #eef4fb; border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; }
.dwr-ic-dialog-code span { display: block; font-size: 12px; color: #5b7fa6; margin-bottom: 3px; }
.dwr-ic-dialog-code strong { font-size: 24px; font-weight: 700; letter-spacing: 1px; color: #0c2d5e; }
.dwr-ic-dialog-hint { font-size: 12px; color: #5b7fa6; margin: 0 0 20px; }
.dwr-ic-dialog-actions { display: flex; justify-content: center; gap: 16px; }
.dwr-ic-dialog-back, .dwr-ic-dialog-confirm {
    min-width: 160px; padding: 14px 22px; border-radius: 10px; font-size: 14px; font-weight: 600;
    cursor: pointer; font-family: inherit; text-decoration: none; display: inline-flex;
    align-items: center; justify-content: center; box-sizing: border-box;
}
.dwr-ic-dialog-back { background: #eef4fb; border: 1px solid #d5e3f4; color: #0c2d5e; }
.dwr-ic-dialog-back:hover { background: #e2edf9; color: #0c2d5e; }
.dwr-ic-dialog-confirm { background: #0c2d5e; border: 1px solid #0c2d5e; color: #fff !important; }
.dwr-ic-dialog-confirm:hover { background: #0a2549; }

/* ═══ หน้าติดตามสถานะ (design 4.1) ═══ */
.dwr-ic-app--track { max-width: 1336px; }

/* ─── รายละเอียดการแจ้ง (design แอดมิน ฝั่ง WP: การ์ดหัวน้ำเงิน 2 คอลัมน์) ─── */
.dwr-ic-detail-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.dwr-ic-type-chip {
    display: inline-block; border: 1px solid #90c2f0; background: #eaf4fd; color: #1565c0;
    border-radius: 20px; padding: 6px 18px; font-size: 13px; margin: 4px 0 10px;
}
.dwr-ic-detail-title { font-size: 26px; font-weight: 600; color: #1a1a1a; margin: 0; }
.dwr-ic-detail-grid { display: grid; grid-template-columns: 1fr 1.06fr; gap: 26px; align-items: start; }
@media (max-width: 960px) { .dwr-ic-detail-grid { grid-template-columns: 1fr; } }
.dwr-ic-detail-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.dwr-ic-panel { background: #fff; border: 1px solid #e4e9f0; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(16, 42, 90, .05); }
.dwr-ic-panel-head {
    background: #1256a5; color: #fff; font-size: 17px; font-weight: 600;
    padding: 15px 22px; position: relative;
}
.dwr-ic-panel-head::after { content: "⌃"; position: absolute; right: 20px; top: 16px; font-size: 15px; opacity: .9; }
.dwr-ic-panel-body { padding: 8px 22px 18px; }
.dwr-ic-kv {
    display: flex; justify-content: space-between; gap: 20px;
    padding: 11px 0; border-bottom: 1px solid #eef1f5; font-size: 14.5px;
}
.dwr-ic-kv:last-child { border-bottom: 0; }
.dwr-ic-kv span { color: #5c6a7d; flex: 0 0 auto; }
.dwr-ic-kv strong { font-weight: 400; color: #1a1a1a; text-align: right; }
.dwr-ic-panel-subhead { color: #1565c0; font-weight: 600; font-size: 14.5px; margin: 14px 0 8px; }
.dwr-ic-detail-text { background: #f4f6f8; border-radius: 8px; padding: 14px 16px; font-size: 14px; color: #2c3644; line-height: 1.8; }
/* ผู้ถูกร้องเรียนรายคน — กล่องเทาแบบเดียวกับช่องอื่น แต่ข้างในเป็นคู่ป้าย-ค่า (WD-476) */
.dwr-ic-accused-view {
    background: #f4f6f8; border-radius: 8px;
    padding: 4px 16px; margin-bottom: 10px;
}
.dwr-ic-accused-view:last-of-type { margin-bottom: 0; }
.dwr-ic-accused-view .dwr-ic-kv { border-bottom-color: #e5e9ee; font-size: 14px; padding: 9px 0; }
.dwr-ic-file-row {
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    padding: 10px 0; border-bottom: 1px solid #eef1f5; font-size: 14px;
}
.dwr-ic-file-row:last-child { border-bottom: 0; }
.dwr-ic-file-row a { color: #1565c0; text-decoration: none; white-space: nowrap; }

/* timeline แบบบันไดสถานะ (อนาคตอยู่บน จางลง / ปัจจุบันส้ม / ที่ผ่านมาเทา) */
.dwr-ic-ladder { list-style: none; margin: 10px 0 0; padding: 0; }
.dwr-ic-ladder li { position: relative; padding: 0 0 26px 34px; }
.dwr-ic-ladder li::before {
    content: ""; position: absolute; left: 8px; top: 18px; bottom: -2px; width: 2px; background: #d4dae2;
}
.dwr-ic-ladder li:last-child::before { display: none; }
.dwr-ic-ladder-dot {
    position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
    background: #8a94a3; box-sizing: border-box;
}
.dwr-ic-ladder li.is-pending .dwr-ic-ladder-dot { background: transparent; border: 2px dashed #c3ccd6; }
.dwr-ic-ladder li.is-current .dwr-ic-ladder-dot { background: #e55b13; }
.dwr-ic-ladder-title { font-size: 15.5px; color: #1a1a1a; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dwr-ic-ladder li.is-pending .dwr-ic-ladder-title { color: #a5aeb9; }
.dwr-ic-ladder-chip { background: #fdeeda; color: #c2570f; border-radius: 16px; padding: 4px 14px; font-size: 12px; }
.dwr-ic-ladder-cancel { margin-left: auto; color: #c0392b !important; font-size: 13.5px; text-decoration: underline; white-space: nowrap; }
.dwr-ic-ladder-cancel:hover { color: #8a2424 !important; }
.dwr-ic-ladder-wait { color: #b3bcc7; font-size: 13.5px; margin-top: 4px; }
.dwr-ic-ladder-date { color: #7c8794; font-size: 13px; margin-top: 4px; }
.dwr-ic-ladder-note {
    background: #eef6fd; border-radius: 8px; padding: 12px 14px; margin-top: 10px;
    font-size: 13.5px; color: #2c3644; line-height: 1.75;
}
.dwr-ic-ladder-files { display: block; margin-top: 6px; }
.dwr-ic-ladder-files a { display: inline-block; margin-right: 12px; text-decoration: none; font-size: 12.5px; }

/* ─── เรื่องร้องเรียนของฉัน (สมาชิก — design Wireframe-8) ─── */
.dwr-ic-mywelcome {
    background: #0c2d5e; color: #fff; border-radius: 16px;
    padding: 30px 40px 26px; margin-bottom: 24px;
}
.dwr-ic-mywelcome h2 { color: #fff; font-size: 26px; font-weight: 600; margin: 0 0 10px; }
.dwr-ic-mywelcome p { color: #d7e3f2; font-size: 14px; margin: 0; line-height: 1.9; }
/* จำนวนการ์ดต่างกันตามกลุ่ม (ทุจริต 8 ใบ / จริยธรรม 9 ใบ) จึงไม่ฟิกจำนวนคอลัมน์ */
.dwr-ic-mykpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px; margin-bottom: 30px;
}
@media (max-width: 700px) { .dwr-ic-mykpis { grid-template-columns: repeat(2, 1fr); } }
.dwr-ic-mykpi {
    background: #fff; border: 1px solid #e4e9f0; border-radius: 12px; padding: 14px 16px;
    display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 4px rgba(16, 42, 90, .05);
}
.dwr-ic-mykpi > span { font-size: 12px; color: #4b5a6b; line-height: 1.5; min-height: 36px; }
.dwr-ic-mykpi-row { display: flex; justify-content: space-between; align-items: flex-end; }
.dwr-ic-mykpi-row strong { font-size: 30px; font-weight: 600; line-height: 1; }
.dwr-ic-mykpi-row em { font-style: normal; font-size: 12px; color: #8a94a3; }
.dwr-ic-mynum-total { color: #1a1a1a; }
.dwr-ic-mynum-received { color: #2543d0; }
.dwr-ic-mynum-investigating { color: #e59b13; }
.dwr-ic-mynum-proposing { color: #e57713; }
.dwr-ic-mynum-notifying { color: #8a6d1f; }
.dwr-ic-mynum-not_corruption { color: #c0392b; }
.dwr-ic-mynum-completed { color: #1c7a3f; }
/* สถานะชุดจริยธรรม (WD-471) */
.dwr-ic-mynum-head_order { color: #7d3cc0; }
.dwr-ic-mynum-opinion { color: #0f7f8c; }
.dwr-ic-mynum-cancelled { color: #6b7280; }

/* แท็บแยกประเภทเรื่องบนแดชบอร์ดสมาชิก (WD-475) */
.dwr-ic-mytabs {
    display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px;
    margin-bottom: 22px;
}
.dwr-ic-mytabs-label { font-size: 15px; color: #1a1a1a; }
.dwr-ic-mytabs-btns {
    display: inline-flex; background: #fff;
    border: 1px solid #d6e0ec; border-radius: 10px; overflow: hidden;
}
.dwr-ic-mytab {
    border: 0; background: none; cursor: pointer; font-family: inherit;
    padding: 11px 26px; font-size: 14px; color: #2b6cd4;
    transition: background .15s, color .15s;
}
.dwr-ic-mytab + .dwr-ic-mytab { border-left: 1px solid #d6e0ec; }
.dwr-ic-mytab:hover:not(.is-active) { background: #f2f7fd; }
.dwr-ic-mytab.is-active { background: #2b6cd4; color: #fff; }
.dwr-ic-mygroup[hidden] { display: none; }
.dwr-ic-mylist-title { font-size: 24px; font-weight: 600; color: #1a1a1a; margin: 0 0 4px; }
.dwr-ic-mylist-hint { color: #1565c0; font-size: 14px; margin: 0 0 16px; }
.dwr-ic-mycard {
    position: relative; display: block; background: #f3f8fd; border: 1px solid #e0eaf4;
    border-radius: 12px; padding: 20px 46px 18px 28px; margin-bottom: 16px;
    text-decoration: none; overflow: hidden;
}
.dwr-ic-mycard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; }
.dwr-ic-mycard.edge-received::before { background: #2543d0; }
.dwr-ic-mycard.edge-progress::before { background: #e55b13; }
.dwr-ic-mycard.edge-notify::before { background: #8a6d1f; }
.dwr-ic-mycard.edge-done::before { background: #1c7a3f; }
.dwr-ic-mycard.edge-reject::before { background: #6b7280; }
.dwr-ic-mycard.edge-cancel::before { background: #c0392b; }
.dwr-ic-mycard-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.dwr-ic-mycard-no { color: #7c8794; font-size: 15px; }
.dwr-ic-mycard-type { border-radius: 18px; padding: 4px 14px; font-size: 12.5px; border: 1px solid transparent; }
.dwr-ic-mycard-type-corruption_tip { background: #fff7e6; border-color: #e8b64c; color: #b97a06; }
.dwr-ic-mycard-type-corruption { background: #eaf4fd; border-color: #7fb4e8; color: #1565c0; }
.dwr-ic-mycard-type-ethics { background: #e8f8ef; border-color: #7fd4a5; color: #14804a; }
.dwr-ic-mycard-type-ethics_issue { background: #f0eafa; border-color: #b79ae8; color: #6d3fc4; }
.dwr-ic-mycard-status { font-size: 13.5px; font-weight: 600; }
.dwr-ic-mycard-subject { display: block; font-size: 16.5px; font-weight: 600; color: #0c2d5e; margin-bottom: 2px; }
.dwr-ic-mycard-office { display: block; font-size: 14px; color: #33517a; margin-bottom: 2px; }
.dwr-ic-mycard-dates { display: block; font-size: 13.5px; color: #5c6a7d; }
.dwr-ic-mycard-arrow { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #8a94a3; font-size: 22px; }
.dwr-ic-breadcrumb { font-size: 13px; color: #90a4bd; margin: 0 0 16px; }
.dwr-ic-breadcrumb a { color: #1565c0; text-decoration: none; }
.dwr-ic-breadcrumb span { margin: 0 4px; }
.dwr-ic-track-head { margin-bottom: 26px; }
.dwr-ic-track-title { font-size: 24px; font-weight: 700; color: #0c2d5e; margin: 0 0 6px; }
.dwr-ic-track-sub { color: #5b7fa6; font-size: 14px; margin: 0; }
.dwr-ic-track-searchbox { margin: 0 0 26px; }
.dwr-ic-track-label { display: block; font-weight: 700; font-size: 14px; color: #0c2d5e; margin-bottom: 4px; }
.dwr-ic-track-hint { font-size: 13px; color: #5b7fa6; margin: 0 0 12px; }
.dwr-ic-track-row { display: flex; gap: 16px; flex-wrap: wrap; }
.dwr-ic-track-row input[type="search"] {
    flex: 1 1 380px; padding: 15px 18px; border: 1px solid #d0e4f4; border-radius: 10px;
    font-size: 14px; font-family: inherit; background: #f7fbff; box-sizing: border-box; color: #1a1a1a;
}
.dwr-ic-track-btn {
    background: #0c2d5e; color: #fff; border: 0; border-radius: 10px;
    padding: 15px 70px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.dwr-ic-track-btn:hover { background: #0a2549; }

/* แถบชื่อระบบแบบสมาชิก (design 5.2) — มีเมนู + ออกจากระบบ */
.dwr-ic-brandbar-member { gap: 16px; }
.dwr-ic-memberbar-nav { display: flex; gap: 26px; margin-left: 30px; flex: 1; }
.dwr-ic-memberbar-nav a { color: #1d2939; text-decoration: none; font-size: 14px; }
.dwr-ic-memberbar-nav a:hover { color: #2b6cd4; }
.dwr-ic-logout {
    border: 1px solid #14223f; border-radius: 22px; padding: 8px 22px;
    color: #14223f !important; font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.dwr-ic-logout:hover { background: #14223f; color: #fff !important; }
@media (max-width: 800px) { .dwr-ic-memberbar-nav { display: none; } }

/* ฟอร์มจริยธรรม (สมาชิก) */
.dwr-ic-noaffected { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #5c6a7d; margin-top: 8px; }
.dwr-ic-member-form .dwr-ic-reg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: end; }
.dwr-ic-member-form .dwr-ic-reg-row-name { grid-template-columns: 190px 1fr 1fr; }
@media (max-width: 800px) { .dwr-ic-member-form .dwr-ic-reg-row, .dwr-ic-member-form .dwr-ic-reg-row-name { grid-template-columns: 1fr; } }

/* ─── ฟอนต์ Prompt ทุกหน้าของระบบร้องเรียน ─── */
.dwr-ic-app, .dwr-ic-entry, .dwr-ic-register,
.dwr-ic-modal, .dwr-ic-policy-modal, .dwr-ic-dialog,
.dwr-ic-app input, .dwr-ic-app select, .dwr-ic-app textarea, .dwr-ic-app button,
.dwr-ic-entry input, .dwr-ic-entry select, .dwr-ic-entry textarea, .dwr-ic-entry button,
.dwr-ic-register input, .dwr-ic-register select, .dwr-ic-register textarea, .dwr-ic-register button,
.dwr-ic-modal input, .dwr-ic-modal button {
    font-family: 'Prompt', 'Sarabun', sans-serif;
}

/* หน้าฟอร์มร้องเรียนทั้ง 8 หน้า ใช้ IBM Plex Sans Thai ตาม design Figma (WD-307/323/324/325) */
.dwr-ic-member,
.dwr-ic-member input, .dwr-ic-member select, .dwr-ic-member textarea, .dwr-ic-member button,
.dwr-ic-member .dwr-ic-dialog {
    font-family: 'IBM Plex Sans Thai', 'Prompt', 'Sarabun', sans-serif;
}

/* CAPTCHA ใต้การ์ดฟอร์ม (แสดงทุกโหมดตาม design) */
.dwr-ic-captcha-row { display: flex; justify-content: center; margin: 26px 0 4px; }

/* ปุ่มกากบาทลบไฟล์ที่เลือกใน dropzone (ก่อนอัปโหลด) */
.dwr-ic-file-list span .dwr-ic-file-x {
    margin-left: 8px; padding: 0 2px; border: 0; background: none; cursor: pointer;
    color: #50575e; font-size: 16px; line-height: 1; font-weight: 600; vertical-align: middle;
}
.dwr-ic-file-list span .dwr-ic-file-x:hover { color: #b32d2e; }

/* ═══════════════════════════════════════════════
   หน้ารวมเมนู "ร้องทุกข์ ร้องเรียนการทุจริต" (Figma 7878-5431)
   การ์ด 303×177 r15 — แถวแรก 4 ใบ, จริยธรรมขึ้นแถวใหม่
   ═══════════════════════════════════════════════ */
.dwr-ic-app--menu {
    max-width: 1336px;
    margin: 0 auto;
    /* ไม่มีแบนเนอร์หัวข้อแล้ว (ใช้ page title ของธีม) — เว้นระยะบนแทน margin ของแบนเนอร์เดิม */
    padding: 32px 16px 120px;
}
.dwr-ic-menu-grid {
    /* แถวแรก 3 ใบ แถวสอง 2 ใบ ตามลำดับ กระทรวง → กรมน้ำ → หน่วยงานอื่น */
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}
.dwr-ic-menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-height: 177px;
    padding: 16px 8px 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 18px rgba(7, 37, 74, 0.08);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.dwr-ic-menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(7, 37, 74, 0.14);
    text-decoration: none;
}
.dwr-ic-menu-card--banner {
    background: #107941;
    justify-content: center;
    padding: 16px;
}
.dwr-ic-menu-card--banner img {
    max-width: 272px;
    width: 100%;
    height: auto;
}
.dwr-ic-menu-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 88px;
    flex: 0 0 auto;
}
.dwr-ic-menu-card-logo img {
    max-height: 88px;
    width: auto;
}
.dwr-ic-menu-line { display: block; white-space: nowrap; }
@media (max-width: 380px) { .dwr-ic-menu-line { white-space: normal; } }
.dwr-ic-menu-card-title {
    font-family: 'Prompt', 'Kanit', sans-serif;
    font-size: 14px;
    font-weight: 350;
    line-height: 1.34;
    color: #041853;
    text-align: center;
}
@media (max-width: 1100px) {
    .dwr-ic-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .dwr-ic-menu-grid { grid-template-columns: 1fr; }
    .dwr-ic-app--menu { padding: 32px 16px 64px; }
}


/* ═══ ผู้ถูกร้องเรียนหลายคน (WD-307/323/324/325) ═══ */
.dwr-ic-optional { font-weight: 400; color: #8a94a3; font-size: 13px; }
.dwr-ic-accused-hint { color: #8a94a3; font-size: 13px; margin: 0 0 12px; }
.dwr-ic-accused {
    border: 1px solid #e3eaf2; border-radius: 12px;
    padding: 16px 18px; margin-bottom: 18px; background: #fbfcfe;
}
.dwr-ic-accused-row {
    padding-bottom: 8px; margin-bottom: 8px;
    border-bottom: 1px solid #eef2f7;
}
.dwr-ic-accused-row:last-child { border-bottom: 0; margin-bottom: 0; }
.dwr-ic-accused-line {
    display: grid;
    grid-template-columns: 56px 150px 1fr 1fr 48px;
    gap: 0 14px; align-items: start;
}
/* บรรทัดที่ 2 ของผู้ถูกร้องเรียนหนึ่งคน (WD-324) — หน่วยงานกว้างเท่าคำนำหน้า+ชื่อจริง
   ส่วนตำแหน่ง/ระดับ แบ่งครึ่งความกว้างของช่องนามสกุล ให้ขอบตรงกับบรรทัดบน */
.dwr-ic-accused-line-org { margin-top: 4px; }
.dwr-ic-accused-line-org > .dwr-ic-accused-org { grid-column: 2 / 4; }
.dwr-ic-accused-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.dwr-ic-accused-no .dwr-ic-accused-index {
    display: block; padding: 10px 0; font-weight: 600; color: #22314f;
}
/* ปุ่มลบใช้ label เปล่าดันลงมาให้อยู่ระดับเดียวกับช่องกรอก ไม่ลอยไปแถวป้ายชื่อ (WD-416) */
.dwr-ic-accused-actions { min-width: 0; }
.dwr-ic-btn-del-accused {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 9px;
    background: #fff; border: 1px solid #f3c2c3; color: #b32d2e;
    cursor: pointer; transition: background .15s;
}
.dwr-ic-btn-del-accused:hover { background: #fdeaea; }
.dwr-ic-accused-foot { display: flex; justify-content: flex-end; margin-top: 6px; }
.dwr-ic-btn-add-accused {
    display: inline-flex; align-items: center; gap: 6px;
    background: #2154bd; color: #fff; border: 0; border-radius: 9px;
    padding: 10px 20px; font-size: 14px; font-weight: 600;
    font-family: inherit; cursor: pointer; transition: filter .15s;
}
.dwr-ic-btn-add-accused:hover { filter: brightness(1.08); }
@media (max-width: 900px) {
    /* จอแคบ: ลำดับขึ้นบรรทัดของตัวเอง แล้ววางช่องที่เหลือเป็น 2 คอลัมน์ */
    .dwr-ic-accused-line { grid-template-columns: 1fr 1fr; }
    .dwr-ic-accused-no { grid-column: 1 / -1; }
    .dwr-ic-accused-line-org > .dwr-ic-accused-org { grid-column: 1 / -1; }
    .dwr-ic-accused-pair { grid-column: 1 / -1; }
    .dwr-ic-accused-spacer { display: none; }
    .dwr-ic-accused-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
    .dwr-ic-accused-actions label { display: none; }
}


/* ═══ แจ้งเตือนหลังส่งเรื่อง 2 ขั้นตอน (WD-327) ═══ */
.dwr-ic-done { max-width: 640px; }
.dwr-ic-steps {
    display: flex; align-items: center; gap: 12px;
    list-style: none; margin: 0 0 22px; padding: 0;
    font-size: 13px; color: #8a94a3;
}
.dwr-ic-steps li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.dwr-ic-steps li:first-child { flex: 1 1 auto; }
.dwr-ic-steps li:first-child::after {
    content: ""; flex: 1 1 auto; height: 1px; background: #d8dee6; margin-left: 4px;
}
.dwr-ic-step-no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: #d8dee6; color: #fff; font-size: 12px; font-weight: 600;
}
.dwr-ic-steps li.is-current { color: #14223f; font-weight: 600; }
.dwr-ic-steps li.is-current .dwr-ic-step-no { background: #2154bd; }
.dwr-ic-steps li.is-done .dwr-ic-step-no { background: #1a9d54; }

.dwr-ic-dialog-icon-bell { background: #e8f0fd; color: #2154bd; }
.dwr-ic-code-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.dwr-ic-btn-copy {
    display: inline-flex; align-items: center; gap: 5px;
    background: #fff; border: 1px solid #c9d6e4; border-radius: 8px;
    padding: 6px 14px; font-size: 13px; color: #22314f;
    cursor: pointer; text-decoration: none; font-family: inherit;
}
.dwr-ic-btn-copy:hover { background: #f2f6fb; color: #22314f; }

.dwr-ic-warn-box, .dwr-ic-note-box {
    display: flex; align-items: flex-start; gap: 8px;
    border-radius: 10px; padding: 10px 14px; margin: 14px 0 0;
    font-size: 13px; text-align: left; line-height: 1.6;
}
.dwr-ic-warn-box { background: #fdf6e3; color: #8a6d1f; }
.dwr-ic-note-box { background: #fdf6e3; color: #8a6d1f; margin-top: 14px; }
.dwr-ic-warn-box .dashicons, .dwr-ic-note-box .dashicons { flex: 0 0 auto; font-size: 17px; width: 17px; height: 17px; }

.dwr-ic-tipgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 0; }
@media (max-width: 640px) { .dwr-ic-tipgrid { grid-template-columns: 1fr; } }
.dwr-ic-tip {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    border: 1px solid #e3eaf2; border-radius: 12px; padding: 14px 12px;
    text-align: center; background: #fbfcfe;
}
.dwr-ic-tip .dashicons { color: #2154bd; font-size: 22px; width: 22px; height: 22px; }
.dwr-ic-tip strong { font-size: 13.5px; color: #14223f; }
.dwr-ic-tip span:last-child { font-size: 11.5px; color: #8a94a3; line-height: 1.5; }

.dwr-ic-done-ack {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 18px 0 4px; font-size: 13.5px; color: #22314f; text-align: left;
    cursor: pointer;
}
.dwr-ic-done-ack input { margin-top: 3px; width: 17px; height: 17px; accent-color: #2154bd; cursor: pointer; }
.dwr-ic-dialog-confirm[disabled] { opacity: .5; cursor: default; }

/* แถวปุ่มในกล่องแจ้งเตือน — เว้นระยะให้หายใจ ไม่ชิดกันและไม่ติดขอบล่าง */
.dwr-ic-done .dwr-ic-dialog-actions {
    gap: 20px;
    margin-top: 24px;
    padding-bottom: 4px;
    flex-wrap: wrap;
}
.dwr-ic-done .dwr-ic-dialog-back,
.dwr-ic-done .dwr-ic-dialog-confirm { padding: 14px 28px; }
@media (max-width: 560px) {
    .dwr-ic-done .dwr-ic-dialog-actions { flex-direction: column; gap: 12px; }
    .dwr-ic-done .dwr-ic-dialog-back,
    .dwr-ic-done .dwr-ic-dialog-confirm { width: 100%; }
}

/* ผู้รับผิดชอบ เหนือไทม์ไลน์ความคืบหน้า (WD-509) */
.dwr-ic-assignee {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 10px 0 4px;
    padding: 10px 14px;
    background: #f4f7fb;
    border-left: 3px solid #1f4e8c;
    border-radius: 0 6px 6px 0;
}
.dwr-ic-assignee-label { font-size: 12px; color: #5c6a7d; }
.dwr-ic-assignee-name  { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.dwr-ic-assignee-meta  { font-size: 13px; color: #5c6a7d; }

/* ผู้รับผิดชอบ + ผู้รายงานความก้าวหน้า เรียงต่อกัน (WD-509) */
.dwr-ic-people { display: flex; flex-direction: column; gap: 8px; }
.dwr-ic-people .dwr-ic-assignee { margin: 0; }
.dwr-ic-assignee-contact { font-size: 13px; color: #5c6a7d; word-break: break-word; }
