/* PC 헤더 MY 드롭다운 + MY 하위 화면(user/my/**Web.html, user/account/**Web.html) 공통 스타일.
   로그인(login.css)과는 분리해서 로드해 스타일 충돌을 막는다. */

/* ===== 헤더 MY 드롭다운 ===== */
.hm-header-my {
    position: relative;
    display: inline-block;
}

/* display:inline-block이 hidden 속성의 UA display:none보다 우선하지 않도록 명시.
   (없으면 비로그인 상태에서 JS가 hidden을 줘도 MY가 계속 보임) */
.hm-header-my[hidden] {
    display: none;
}

.hm-header-my-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 380px;
    background: none;
    border: none;
    padding: 0;
    color: #fff;
    font-size: 15px;
    letter-spacing: -0.3px;
    cursor: pointer;
}

.hm-header-my-trigger #hmHeaderMyName {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.navbar.fixed .hm-header-my-trigger {
    color: #000;
    font-weight: bold;
}

.hm-header-my-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 14px;
    width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
    padding: 8px 0;
    z-index: 500;
}

.hm-header-my.on .hm-header-my-menu {
    display: block;
}

.hm-header-my-menu a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: #333;
    letter-spacing: -0.2px;
}

/* display:block이 hidden 속성의 UA display:none보다 우선하지 않도록 명시.
   (없으면 userType 2가 아닌 사용자에게도 JS가 hidden을 줘도 "제휴점 페이지" 항목이 계속 보임) */
.hm-header-my-menu a[hidden] {
    display: none;
}

.hm-header-my-menu a:hover {
    background: #f7f7f7;
    color: #ff0000;
}

.hm-header-my-divider {
    height: 1px;
    background: #eee;
    margin: 6px 0;
}

/* ===== 헤더 고객센터 드롭다운(GNB) ===== */
.gnb-dropdown {
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.gnb-dropdown-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
    padding: 8px 0;
    z-index: 500;
}

.gnb-dropdown:hover .gnb-dropdown-menu {
    display: block;
}

.gnb-dropdown-menu a {
    display: block;
    width: auto;
    height: auto;
    padding: 10px 18px;
    font-size: 14px;
    color: #333;
    text-align: left;
}

.gnb-dropdown-menu a:hover {
    background: #f7f7f7;
    color: #ff0000;
}

/* ===== MY 하위 페이지 공통 레이아웃 ===== */
.hm-web-my-wrap {
    width: 1280px;
    max-width: 100%;
    margin: 0 auto;
    /* 헤더(.navbar.default)가 absolute로 떠서 콘텐츠 위에 겹치므로, 로그인 화면
       (hm-pclogin-wrap)과 동일하게 상단 여백을 둬서 겹치지 않게 한다. */
    padding: 90px 20px 100px;
    box-sizing: border-box;
}

.hm-web-my-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 1040px;
    margin: 0 auto;
}

.hm-web-my-sidebar {
    flex: 0 0 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 16px 0;
    box-sizing: border-box;
}

.hm-web-my-sidebar-title {
    font-size: 13px;
    font-weight: 700;
    color: #999;
    padding: 4px 22px 12px;
}

.hm-web-my-sidebar a {
    display: block;
    padding: 12px 22px;
    font-size: 14px;
    color: #555;
    letter-spacing: -0.2px;
}

/* display:block이 hidden 속성의 UA display:none보다 우선하지 않도록 명시.
   (없으면 userType 2가 아닌 사용자에게도 JS가 hidden을 줘도 "제휴점 페이지" 메뉴가 계속 보임) */
.hm-web-my-sidebar a[hidden] {
    display: none;
}

.hm-web-my-sidebar a:hover {
    color: #ff0000;
    background: #fff8f8;
}

.hm-web-my-sidebar a.on {
    color: #ff0000;
    font-weight: 700;
    background: #fff2f2;
}

.hm-web-my-panel {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 32px 36px;
    box-sizing: border-box;
    min-height: 420px;
}

.hm-web-my-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 24px;
}

/* 비로그인 안내 */
.hm-web-my-loginmsg {
    text-align: center;
    padding: 80px 0;
}

.hm-web-my-loginmsg p {
    font-size: 14px;
    color: #888;
    margin: 0 0 16px;
}

.hm-web-my-loginmsg a {
    display: inline-block;
    padding: 10px 22px;
    background: #ff0000;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.hm-web-my-empty {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 60px 0;
}

/* ===== 최근본샵 목록 ===== */
.hm-web-my-shoplist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.hm-web-my-shopcard {
    display: flex;
    gap: 14px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    box-sizing: border-box;
    color: #333;
}

.hm-web-my-shopcard:hover {
    border-color: #ffbcbc;
}

.hm-web-my-shopcard img {
    width: 84px;
    height: 84px;
    border-radius: 8px;
    object-fit: cover;
    flex: none;
    background: #f2f2f2;
}

.hm-web-my-shopcard-info {
    min-width: 0;
}

.hm-web-my-shopcard-region {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.hm-web-my-shopcard-name {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-web-my-shopcard-score {
    font-size: 13px;
    color: #f4a623;
    font-weight: 700;
}

/* ===== 나의 리뷰 ===== */
.hm-web-my-reviewlist {
    display: flex;
    flex-direction: column;
}

.hm-web-my-reviewitem {
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hm-web-my-reviewitem:first-child {
    padding-top: 0;
}

.hm-web-my-review-toprow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.hm-web-my-review-shop {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.hm-web-my-review-date {
    font-size: 12px;
    color: #aaa;
}

.hm-web-my-review-score {
    font-size: 13px;
    color: #f4a623;
    font-weight: 700;
    margin-bottom: 6px;
}

.hm-web-my-review-content {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.hm-web-my-review-blind {
    color: #aaa;
    font-size: 13px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* ===== 나의 쿠폰 ===== */
.hm-web-my-couponlist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.hm-web-my-couponcard {
    border: 1px dashed #ffc2c2;
    border-radius: 10px;
    padding: 18px;
    box-sizing: border-box;
    background: #fffafa;
}

.hm-web-my-coupon-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #ff0000;
    border-radius: 4px;
    padding: 2px 6px;
    margin-bottom: 8px;
}

.hm-web-my-coupon-content {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

.hm-web-my-coupon-shop {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.hm-web-my-coupon-period {
    font-size: 12px;
    color: #ff0000;
}

/* ===== 폼(내정보 수정 / 비밀번호 수정) ===== */
.hm-web-my-field {
    margin-bottom: 18px;
}

.hm-web-my-field label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.hm-web-my-field input,
.hm-web-my-field select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.hm-web-my-field input:focus,
.hm-web-my-field select:focus {
    border-color: #ff0000;
}

.hm-web-my-field input:disabled {
    background: #f7f7f7;
    color: #999;
}

.hm-web-my-field textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 14px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    resize: vertical;
}

.hm-web-my-field textarea:focus {
    border-color: #ff0000;
}

.hm-web-my-msg {
    font-size: 13px;
    color: #ff0000;
    margin: 0 0 16px;
}

.hm-web-my-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 28px;
    border: none;
    border-radius: 6px;
    background: #ff0000;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.hm-web-my-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.hm-web-my-btn[hidden] {
    display: none;
}

.hm-web-my-linkrow {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.hm-web-my-linkrow a {
    font-size: 13px;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
}

/* ===== 고객센터(제휴문의 / 1:1문의) ===== */
.hm-web-qna-wrap {
    width: 1280px;
    max-width: 100%;
    margin: 0 auto;
    padding: 90px 20px 100px;
    box-sizing: border-box;
}

.hm-web-qna-panel {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 32px 36px;
    box-sizing: border-box;
}

.hm-web-qna-intro {
    text-align: center;
    margin-bottom: 24px;
}

.hm-web-qna-intro h3 {
    font-size: 20px;
    color: #222;
    margin: 0 0 8px;
}

.hm-web-qna-intro p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.hm-web-qna-panel .hm-web-my-field textarea {
    width: 100%;
    min-height: 160px;
    padding: 12px 14px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    resize: vertical;
}

.hm-web-qna-panel .hm-web-my-field textarea:focus {
    border-color: #ff0000;
}

/* ===== 공지사항 ===== */
.hm-web-notice-wrap {
    width: 1280px;
    max-width: 100%;
    margin: 0 auto;
    padding: 90px 20px 100px;
    box-sizing: border-box;
}

.hm-web-notice-panel {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 32px 36px;
    box-sizing: border-box;
}

.hm-web-notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hm-web-notice-item {
    border-bottom: 1px solid #f0f0f0;
}

.hm-web-notice-item:first-child {
    border-top: 1px solid #eee;
}

.hm-web-notice-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 4px;
    color: #333;
}

.hm-web-notice-item a:hover {
    color: #ff0000;
}

.hm-web-notice-title {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 16px;
}

.hm-web-notice-date {
    font-size: 13px;
    color: #999;
    flex: none;
}

.hm-web-notice-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
}

.hm-web-notice-detail-date {
    font-size: 13px;
    color: #999;
    margin: 0 0 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.hm-web-notice-detail-content {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
    min-height: 200px;
}

/* PC 하단 푸터의 약관/방침 링크 줄 (layout/webindex.html) */
.hm-web-footer-terms {
    margin: 6px 0 10px;
}

.hm-web-footer-terms a {
    color: #ffffffb0;
    font-size: 13px;
    text-decoration: underline;
}

.hm-web-footer-terms a:hover {
    color: #ffffff;
}

.hm-web-footer-terms a + a {
    margin-left: 14px;
}

/* ===== 약관/방침 본문(PC, user/setting/*Web.html) =====
   모바일 .hm-legal-doc 과 동일한 원문(안드로이드 strings.xml)을 PC 패널에 담는 문서형 스타일. */
.hm-web-legal {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    word-break: keep-all;
}

.hm-web-legal .hm-web-legal-updated {
    margin: 0 0 24px;
    font-size: 13px;
    color: #999;
}

.hm-web-legal h3 {
    margin: 28px 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.hm-web-legal h3:first-of-type {
    margin-top: 0;
}

.hm-web-legal h4 {
    margin: 18px 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.hm-web-legal p {
    margin: 0 0 12px;
}

.hm-web-legal ul {
    margin: 0 0 14px;
    padding-left: 20px;
}

.hm-web-legal li {
    margin: 0 0 5px;
}

.hm-web-legal .hm-web-legal-bizbox {
    margin-top: 28px;
    padding: 16px 18px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.75;
    color: #555;
}

.hm-web-legal .hm-web-legal-bizbox strong {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #333;
}

/* ===== 제휴점 관리자(PC, user/manager/*Web.html) ===== */

/* 대시보드 카드 그리드 */
.hm-mgr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* [hidden]과 display:grid/flex가 함께 있으면 author 규칙이 UA의 [hidden]{display:none}보다
   우선해 hidden이어도 보여버린다(.hm-header-my[hidden]과 동일한 이유). 명시적으로 되돌린다. */
.hm-mgr-grid[hidden] {
    display: none;
}

.hm-mgr-card {
    position: relative;
    display: block;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px 18px;
    color: #333;
    box-sizing: border-box;
}

.hm-mgr-card:hover {
    border-color: #ffbcbc;
    background: #fffafa;
}

.hm-mgr-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff2f2;
    color: #ff0000;
    margin-bottom: 12px;
}

.hm-mgr-card.warn .hm-mgr-card-icon { background: #fff6e6; color: #e08a00; }
.hm-mgr-card.success .hm-mgr-card-icon { background: #e9f9ef; color: #1e9e4c; }
.hm-mgr-card.info .hm-mgr-card-icon { background: #eaf3ff; color: #2a6fdb; }
.hm-mgr-card.danger .hm-mgr-card-icon { background: #ffeaea; color: #d92626; }
.hm-mgr-card.violet .hm-mgr-card-icon { background: #f2eaff; color: #7c3aed; }

.hm-mgr-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px;
}

.hm-mgr-card p {
    font-size: 12px;
    color: #999;
    margin: 0;
    line-height: 1.5;
}

.hm-mgr-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ff0000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* 목록 상단 툴바(필터/등록버튼) */
.hm-mgr-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hm-mgr-toolbar select {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.hm-mgr-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.hm-mgr-panel-head .hm-web-my-panel-title {
    margin: 0;
}

.hm-mgr-panel-head > a {
    margin-left: auto;
}

/* 목록(샵/관리사/쿠폰/리뷰/공지/이벤트참여/캐시백 공통) */
.hm-mgr-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hm-mgr-item {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px 16px;
    box-sizing: border-box;
    color: #333;
}

a.hm-mgr-item:hover {
    border-color: #ffbcbc;
    background: #fffafa;
}

.hm-mgr-item-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex: none;
    background: #f2f2f2;
}

.hm-mgr-item-body {
    flex: 1;
    min-width: 0;
}

.hm-mgr-item-name {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-mgr-item-sub {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-mgr-item-cta {
    flex: none;
    font-size: 13px;
    color: #ff0000;
    font-weight: 700;
}

.hm-mgr-item-actions {
    flex: none;
    display: flex;
    gap: 8px;
}

/* 목록 카드 내 삭제/확인 버튼(이벤트참여관리, 캐시백적립): 높이를 서로 맞춘다 */
.hm-mgr-item-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.hm-mgr-item-btn-outline {
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
}

.hm-mgr-item-btn-outline:hover {
    border-color: #ff0000;
    color: #ff0000;
}

.hm-mgr-item-btn-fill {
    border: none;
    background: #ff0000;
    color: #fff;
}

.hm-mgr-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 6px;
}

.hm-mgr-tag-on { background: #e9f9ef; color: #1e9e4c; }
.hm-mgr-tag-off { background: #f2f2f2; color: #999; }
.hm-mgr-tag-blind { background: #ffeaea; color: #d92626; }
.hm-mgr-tag-choice { background: #eaf3ff; color: #2a6fdb; }
.hm-mgr-tag-manage { background: #f2eaff; color: #7c3aed; }
.hm-mgr-tag-rank { background: #fff6e6; color: #e08a00; }
.hm-mgr-tag-new { background: #fff2f2; color: #ff0000; }

.hm-mgr-item-content {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-top: 8px;
}

.hm-mgr-item-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.hm-mgr-item-stars svg { width: 13px; height: 13px; }

/* 등록/추가 버튼(패널 헤더 우측) */
.hm-mgr-addbtn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 38px;
    padding: 0 16px;
    border-radius: 6px;
    background: #ff0000;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

/* 이미지 업로드(샵/관리사 폼) */
.hm-mgr-imageupload {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.hm-mgr-imageupload-box {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 10px;
    background: #f7f7f7;
    border: 1px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    flex: none;
}

.hm-mgr-imageupload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hm-mgr-imageupload-plus {
    font-size: 26px;
    color: #bbb;
}

.hm-mgr-imageupload-hint {
    font-size: 12px;
    color: #999;
}

/* 인라인 입력(구분자/위경도확인 버튼이 붙는 필드) */
.hm-mgr-inline {
    display: flex;
    gap: 8px;
}

.hm-mgr-inline input {
    flex: 1;
}

.hm-mgr-inline button {
    flex: none;
}

.hm-mgr-btn-small {
    height: 46px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.hm-mgr-btn-small:hover {
    border-color: #ff0000;
    color: #ff0000;
}

/* 영업시간(시:분 select 그룹) */
.hm-mgr-timerange {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hm-mgr-timerange select {
    height: 46px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
}

.hm-mgr-timerange-sep {
    color: #999;
}

/* 배지 / 적용샵 칩(다중 선택 토글) */
.hm-mgr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.hm-mgr-chip {
    height: 36px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 18px;
    background: #fff;
    color: #666;
    font-size: 13px;
    cursor: pointer;
}

.hm-mgr-chip.active {
    border-color: #ff0000;
    background: #fff2f2;
    color: #ff0000;
    font-weight: 700;
}

.hm-mgr-addchip-btn {
    height: 38px;
    padding: 0 16px;
    border: 1px dashed #ccc;
    border-radius: 6px;
    background: #fff;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 24px;
}

.hm-mgr-addchip-btn:hover {
    border-color: #ff0000;
    color: #ff0000;
}

/* 프로그램 그룹(가격표) 편집 */
.hm-mgr-proggroup {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
}

.hm-mgr-proggroup-head {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.hm-mgr-proggroup-head input {
    flex: 1;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
}

.hm-mgr-proggroup-del,
.hm-mgr-progitem-del {
    flex: none;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    background: #f7f7f7;
    color: #999;
    cursor: pointer;
}

.hm-mgr-proggroup-del:hover,
.hm-mgr-progitem-del:hover {
    background: #ffeaea;
    color: #d92626;
}

.hm-mgr-proggroup-move,
.hm-mgr-progitem-move {
    flex: none;
    width: 30px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #999;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
}

.hm-mgr-proggroup-move:hover,
.hm-mgr-progitem-move:hover {
    border-color: #ff0000;
    color: #ff0000;
}

.hm-mgr-progitem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px dashed #eee;
    flex-wrap: wrap;
}

.hm-mgr-progitem:first-of-type {
    border-top: none;
}

.hm-mgr-progitem input {
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
}

.hm-mgr-progitem-name { flex: 2 1 160px; }
.hm-mgr-progitem-min { flex: 1 1 80px; }
.hm-mgr-progitem-price,
.hm-mgr-progitem-saleprice { flex: 1 1 100px; }

.hm-mgr-progitem-discount {
    flex: 0 0 100%;
    font-size: 12px;
    color: #ff0000;
}

/* 토글 스위치(게시여부/블라인드/샵상세노출) */
.hm-mgr-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hm-mgr-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 26px;
    flex: none;
}

.hm-mgr-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.hm-mgr-toggle-track {
    position: absolute;
    inset: 0;
    background: #ddd;
    border-radius: 13px;
    transition: background .15s;
    cursor: pointer;
}

.hm-mgr-toggle-track::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform .15s;
}

.hm-mgr-toggle input:checked + .hm-mgr-toggle-track {
    background: #ff0000;
}

.hm-mgr-toggle input:checked + .hm-mgr-toggle-track::before {
    transform: translateX(18px);
}

.hm-mgr-toggle-label {
    font-size: 13px;
    color: #666;
}

/* 쿠폰 폼: 사용기간(종료일) */
.hm-couponform-enddate-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hm-couponform-enddate-row input[type="date"] {
    width: auto;
}

.hm-couponform-enddate-suffix {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

/* 별점 선택 */
.hm-mgr-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.hm-mgr-starbtn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}

/* 저장/삭제 버튼 영역 */
.hm-mgr-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.hm-mgr-actions[hidden] {
    display: none;
}

.hm-mgr-btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 28px;
    border: 1px solid #ffbcbc;
    border-radius: 6px;
    background: #fff;
    color: #ff0000;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.hm-mgr-btn-delete[hidden] {
    display: none;
}

/* 다이얼로그(배치 적용 / 적용샵 선택) */
.hm-mgr-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.hm-mgr-dialog-overlay[hidden] {
    display: none;
}

.hm-mgr-dialog {
    width: 360px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-sizing: border-box;
}

.hm-mgr-dialog h3 {
    font-size: 16px;
    color: #222;
    margin: 0 0 8px;
}

.hm-mgr-dialog p {
    font-size: 13px;
    color: #888;
    margin: 0 0 16px;
}

.hm-mgr-dialog-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #444;
    padding: 8px 0;
}

.hm-mgr-dialog-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.hm-mgr-dialog-actions button {
    flex: 1;
    height: 42px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.hm-mgr-dialog-actions button:first-child {
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
}

.hm-mgr-dialog-actions button:last-child {
    border: none;
    background: #ff0000;
    color: #fff;
}

.hm-mgr-shoppick-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #444;
    padding: 8px 0;
    border-bottom: 1px solid #f4f4f4;
}

/* ===== 제휴점 관리자 대시보드(managerMainWeb) ===== */

.hm-dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.hm-dash-stat-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 18px 20px;
    box-sizing: border-box;
}

.hm-dash-stat-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.hm-dash-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: #222;
    line-height: 1.2;
}

.hm-dash-stat-value.accent {
    color: #ff0000;
}

.hm-dash-stat-unit {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    margin-left: 3px;
}

.hm-dash-stat-sub {
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
}

.hm-dash-section {
    margin-bottom: 28px;
}

.hm-dash-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hm-dash-section-title a {
    font-size: 12px;
    color: #ff0000;
    font-weight: 700;
}

.hm-dash-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hm-dash-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #ffdada;
    background: #fff8f8;
    border-radius: 10px;
    padding: 14px 16px;
    color: #333;
}

.hm-dash-action-item:hover {
    border-color: #ff0000;
}

.hm-dash-action-badge {
    flex: none;
    min-width: 28px;
    height: 28px;
    border-radius: 14px;
    background: #ff0000;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    box-sizing: border-box;
}

.hm-dash-action-text {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}

.hm-dash-action-cta {
    flex: none;
    font-size: 13px;
    color: #ff0000;
    font-weight: 700;
}

.hm-dash-empty-ok {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 24px 0;
    border: 1px dashed #eee;
    border-radius: 10px;
}

.hm-dash-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hm-dash-coupon-stats {
    display: flex;
    gap: 12px;
}

.hm-dash-coupon-stat {
    flex: 1;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px 8px;
    box-sizing: border-box;
}

.hm-dash-coupon-stat b {
    display: block;
    font-size: 20px;
    color: #222;
}

.hm-dash-coupon-stat span {
    font-size: 12px;
    color: #999;
}

.hm-dash-shopcards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hm-dash-shopcard {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.hm-dash-shopcard-name {
    font-weight: 700;
    font-size: 14px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-dash-shopcard-meta {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.hm-dash-shopcard-score {
    flex: none;
    font-size: 14px;
    font-weight: 800;
    color: #f4a100;
}

.hm-dash-activity {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hm-dash-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px 14px;
}

.hm-dash-activity-icon {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f2f2;
    color: #666;
}

.hm-dash-activity-icon.review { background: #eaf3ff; color: #2a6fdb; }
.hm-dash-activity-icon.cashb { background: #e9f9ef; color: #1e9e4c; }
.hm-dash-activity-icon.eventparti { background: #f2eaff; color: #7c3aed; }

.hm-dash-activity-body {
    flex: 1;
    min-width: 0;
}

.hm-dash-activity-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-dash-activity-date {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
}

.hm-dash-menu-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px;
}

/* ==========================================================================
   관리사(테라피스트) 그리드 - 모바일웹(m-app.css .hm-therapist-*)과 동일한 카드 디자인을
   데스크탑 폭(1280px)에 맞춰 재사용한다. 마크업은 hmShopCard.js의 employeeCard()로 생성.
   ========================================================================== */

.hm-therapist-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px 24px;
    padding: 24px 0;
}

.hm-therapist-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.hm-therapist-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 6px;
    background: #e6e6e6;
}

.hm-therapist-region {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 800;
    color: #2b2b2b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-therapist-shop {
    margin-top: 4px;
    font-size: 13px;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*
 * 샵타입/방문형태 태그(안드로이드 list_item_employee.xml 의 tag_shop_type / tag_service_type).
 * 모바일웹(m-app.css .hm-therapist-tag)과 동일한 디자인.
 */
.hm-therapist-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 8px;
}

.hm-therapist-tag {
    display: inline-block;
    max-width: 100%;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-therapist-divider {
    margin-top: 9px;
    height: 1px;
    background: #e7e7e7;
}

.hm-therapist-msgrow {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 9px;
}

.hm-therapist-name {
    flex: none;
    font-size: 15px;
    font-weight: 800;
    color: #f5261f;
}

.hm-therapist-msg {
    margin-left: auto;
    font-size: 13px;
    color: #9b9b9b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 900px) {
    .hm-web-my-layout {
        flex-direction: column;
    }
    .hm-web-my-sidebar {
        flex: none;
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 8px;
    }
    .hm-web-my-sidebar-title {
        display: none;
    }
    .hm-web-my-sidebar a {
        white-space: nowrap;
    }
    .hm-web-my-shoplist,
    .hm-web-my-couponlist {
        grid-template-columns: 1fr;
    }
    .hm-mgr-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hm-dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .hm-dash-cols {
        grid-template-columns: 1fr;
    }
}
