/*
 * 26-11-19 imzeus9 고객용 메뉴검색(사이트맵) 오버레이 CSS - 새로 만든 파일 start ↓↓↓↓↓
 * - 모든 선택자는 .dr-ms- 접두어 또는 #dr-ms- id 아래에서만 정의한다(다른 화면에 영향 없음).
 * - 버튼·입력창의 기본 모양은 public/css/dr-ui.css(dr-btn, dr-input)를 쓴다. 이 파일은 dr-ui.css 뒤에 불러온다.
 */
.dr-ms-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 5000;                      /* PC 메가메뉴(999)·모바일 헤더(1000)보다 위, 로딩바(99999)·모바일 알림(9999)보다 아래 */
    background: rgba(20, 28, 48, .5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8vh 12px 12px;
    box-sizing: border-box;
    direction: ltr;                     /* PC가 bootstrap.rtl CSS를 쓰므로 방향을 명시 */
    text-align: left;
}
.dr-ms-overlay[hidden] { display: none; }
.dr-ms-overlay *, .dr-ms-overlay *::before, .dr-ms-overlay *::after { box-sizing: border-box; }

.dr-ms-dialog {
    width: 100%;
    max-width: 560px;
    max-height: 84vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
    overflow: hidden;
    outline: 0;
    font-family: inherit;
}
.dr-ms-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 6px 18px;
}
.dr-ms-title { margin: 0; font-size: 17px; font-weight: 700; color: #1f2a44; line-height: 1.3; }
.dr-ms-searchwrap { padding: 8px 18px 6px; }
.dr-ms-overlay .dr-ms-input { width: 100%; height: 42px; font-size: 15px; }
.dr-ms-status { padding: 0 18px 6px; min-height: 20px; font-size: 12px; color: #8a94a8; }

.dr-ms-list { flex: 1 1 auto; overflow-y: auto; padding: 0 10px 14px; -webkit-overflow-scrolling: touch; }
.dr-ms-group { margin-top: 6px; }
.dr-ms-group-title { padding: 8px 8px 4px; font-size: 12px; font-weight: 700; color: #5282ff; }
.dr-ms-overlay a.dr-ms-item {
    display: flex;
    align-items: center;
    gap: 6px;
    /* 26-11-19 imzeus9 하위 메뉴를 소제목보다 2칸(약 24px) 더 들여쓰기 - 기존 코드: padding: 11px 10px; */
    padding: 11px 10px 11px 34px;
    border-radius: 8px;
    font-size: 15px;
    color: #1f2a44;
    text-decoration: none;
}
.dr-ms-overlay a.dr-ms-item:hover,
.dr-ms-overlay a.dr-ms-item.is-active { background: #e8efff; color: #1f2a44; text-decoration: none; }
.dr-ms-overlay a.dr-ms-item:focus-visible { outline: 0; background: #e8efff; box-shadow: 0 0 0 3px rgba(58, 107, 255, .25); }
.dr-ms-item-label { flex: 1 1 auto; min-width: 0; word-break: keep-all; }

.dr-ms-badge {
    flex: 0 0 auto;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
}
.dr-ms-badge-login { background: #fff1e0; color: #b4600a; }
.dr-ms-badge-pc { background: #e6e9f0; color: #5b6478; }
.dr-ms-badge-ext { background: #e8efff; color: #3a6bff; }

.dr-ms-empty { padding: 4px 18px 22px; text-align: center; font-size: 14px; color: #5b6478; }
.dr-ms-empty[hidden] { display: none; }
.dr-ms-empty p { margin: 0 0 6px; }
.dr-ms-empty a { color: #3a6bff; text-decoration: underline; }
.dr-ms-sep { margin: 0 8px; color: #c4cad8; }

/* 헤더 진입 버튼(PC) - 기존 헤더 링크와 같은 모양, 아이콘 없이 글자만 */
#dr-ms-open-pc { cursor: pointer; white-space: nowrap; }

@media (max-width: 520px) {
    .dr-ms-overlay { padding-top: 6vh; }
    .dr-ms-dialog { max-height: 88vh; }
    /* 26-11-19 imzeus9 모바일도 같은 들여쓰기 유지 - 기존 코드: padding: 13px 10px; */
    .dr-ms-overlay a.dr-ms-item { padding: 13px 10px 13px 34px; }     /* 터치하기 쉽게 */
}
/* 26-11-19 imzeus9 고객용 메뉴검색(사이트맵) 오버레이 CSS end ↑↑↑↑↑ */
