/* MUGR Smart Suggest v1 — หน้าต่างผลขณะพิมพ์ (คู่กับ assets61/js/mugr-suggest.js) */
.mugr-ac{position:fixed;z-index:100050;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  background:#fff;border:1px solid #d9e4f2;border-radius:16px;box-shadow:0 18px 48px rgba(15,42,78,.18),0 2px 6px rgba(15,42,78,.06);
  padding:6px 0 8px;color:#132c4f;font-size:15px;line-height:1.45;text-align:left;font-family:inherit}
.mugr-ac[hidden]{display:none!important}
.mugr-ac *,.mugr-ac *::before,.mugr-ac *::after{box-sizing:border-box}
.mugr-ac__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.mugr-ac a,.mugr-ac a:hover,.mugr-ac a:focus,.mugr-ac a:visited{color:inherit;text-decoration:none}
.mugr-ac mark{background:#fff1b8;color:inherit;border-radius:3px;padding:0 1px}

/* หัวข้อกลุ่ม */
.mugr-ac__head{padding:10px 18px 4px;font-size:12.5px;color:#6b7c93;font-weight:600;letter-spacing:.01em}

/* แถวที่เลือกได้ */
.mugr-ac__opt{display:flex;align-items:flex-start;gap:12px;width:100%;padding:8px 18px;cursor:pointer;position:relative}
.mugr-ac__opt[aria-selected="true"],.mugr-ac__opt:hover{background:#f1f6fd}
.mugr-ac__opt[aria-selected="true"]::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:3px;border-radius:0 3px 3px 0;background:#0878df}

/* คำค้นแนะนำ */
.mugr-ac__terms{padding-top:2px}
.mugr-ac__term-wrap{position:relative}
.mugr-ac__term{align-items:center;padding-top:7px;padding-bottom:7px;padding-right:48px}
.mugr-ac__term .fa{width:16px;text-align:center;color:#8a9ab0;font-size:14px;flex:0 0 16px}
.mugr-ac__term-text{font-size:15.5px;color:#132c4f;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mugr-ac__term-text b{font-weight:700;color:#0e2d55}
.mugr-ac__tag{font-size:11.5px;color:#7a8aa0;flex:0 0 auto}
.mugr-ac__remove{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:30px;height:30px;border:0;border-radius:50%;
  background:transparent;color:#8a9ab0;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:13px}
.mugr-ac__remove:hover,.mugr-ac__remove:focus-visible{background:#e6eef9;color:#28466d;outline:0}

/* แก้ภาษาแป้นพิมพ์ */
.mugr-ac__fixed{margin:4px 12px 6px;padding:8px 12px;border-radius:10px;background:#fff8e6;color:#6b4a00;font-size:13.5px}
.mugr-ac__fixed b{color:#4a3300}
.mugr-ac__linkbtn{border:0;background:none;padding:0 0 0 6px;color:#0b5cad;font:inherit;text-decoration:underline;cursor:pointer}

/* การ์ดคำตอบด่วน */
.mugr-ac__answer{margin:6px 12px 4px;width:auto;padding:12px 14px;border-radius:12px;background:#eef5ff;border:1px solid #d3e4fb;align-items:center}
.mugr-ac__answer:hover,.mugr-ac__answer[aria-selected="true"]{background:#e3eefd;border-color:#9fc4f3}
.mugr-ac__answer[aria-selected="true"]::before{display:none}
.mugr-ac__answer-icon{flex:0 0 40px;width:40px;height:40px;border-radius:50%;background:#0878df;color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px}
.mugr-ac__answer-body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
.mugr-ac__answer-title{font-size:15.5px;font-weight:700;color:#0b3f7a;line-height:1.35}
.mugr-ac__answer-sub{font-size:13px;color:#3d5a80;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mugr-ac__answer-btn{flex:0 0 auto;padding:6px 12px;border-radius:999px;border:1px solid #0878df;color:#0868c4;font-size:13px;font-weight:600;white-space:nowrap;background:#fff}

/* รายการผลลัพธ์ */
.mugr-ac__group{padding-top:2px}
.mugr-ac__item{padding-top:7px;padding-bottom:7px}
.mugr-ac__badge{flex:0 0 auto;min-width:46px;margin-top:2px;padding:2px 8px;border-radius:6px;font-size:11.5px;font-weight:600;line-height:1.5;text-align:center;
  background:#eef2f7;color:#41566f;white-space:nowrap}
.mugr-ac__item-body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
.mugr-ac__item-title{font-size:14.5px;color:#132c4f;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mugr-ac__item-meta{font-size:12.5px;color:#6b7c93;margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* สีป้ายตามหมวด */
.mugr-ac__badge--c-program,.mugr-ac__badge--c-course{background:#edf2ff;color:#3050a8}
.mugr-ac__badge--c-thesis{background:#f2effa;color:#5b4a8f}
.mugr-ac__badge--c-staff{background:#eaf7ef;color:#21683f}
.mugr-ac__badge--c-system{background:#e6f2fd;color:#0b5aa4}
.mugr-ac__badge--c-news,.mugr-ac__badge--c-announcement{background:#f4ecfd;color:#6c3a9e}
.mugr-ac__badge--c-scholarship{background:#fff3db;color:#7d5200}
.mugr-ac__badge--c-faq{background:#e8f5f4;color:#1d6662}
.mugr-ac__badge--c-job{background:#e4f6f8;color:#0c6570}
.mugr-ac__badge--c-page{background:#eef2f7;color:#41566f}
.mugr-ac__badge--c-file{background:#eef2f7;color:#41566f}
.mugr-ac__badge--pdf{background:#fdecec;color:#b02a2a}
.mugr-ac__badge--docx{background:#e8f0fd;color:#1f4fa3}
.mugr-ac__badge--xlsx{background:#e7f5ec;color:#1e6b3c}
.mugr-ac__badge--pptx{background:#fdeee6;color:#a3461b}

/* ไม่พบผล */
.mugr-ac__empty{padding:14px 18px 6px;display:flex;flex-direction:column;gap:2px;font-size:14px;color:#41566f}
.mugr-ac__empty b{color:#132c4f}

/* ดูผลทั้งหมด */
.mugr-ac__all{margin:8px 12px 0;width:auto;padding:11px 14px;border-radius:10px;background:#f4f8fd;align-items:center;justify-content:space-between;
  font-weight:700;color:#0868c4;font-size:14.5px}
.mugr-ac__all .fa{margin-right:6px}
.mugr-ac__all[aria-selected="true"]::before{display:none}
.mugr-ac__all[aria-selected="true"],.mugr-ac__all:hover{background:#e6effb}
.mugr-ac__all kbd{font:600 11.5px/1 inherit;font-family:inherit;padding:4px 7px;border:1px solid #c9d6e8;border-bottom-width:2px;border-radius:6px;color:#4c6280;background:#fff}

@media (max-width:640px){
  .mugr-ac{border-radius:14px;font-size:14.5px}
  .mugr-ac__opt{padding-left:14px;padding-right:14px}
  .mugr-ac__term{padding-right:44px}
  .mugr-ac__answer-icon{flex-basis:34px;width:34px;height:34px;font-size:15px}
  .mugr-ac__answer-btn{display:none}
  .mugr-ac__all kbd{display:none}
}
@media (hover:none){.mugr-ac__all kbd{display:none}}
@media (forced-colors:active){.mugr-ac__opt[aria-selected="true"]{outline:2px solid Highlight}}
