:root {
    --primary: #E53935;
    --primary-light: #FFEBEE;
    --primary-dark: #B71C1C;
    --bg: #F5F5F7;
    --sidebar-bg: #1A1A2E;
    --sidebar-hover: #16213E;
    --sidebar-active: #E53935;
    --white: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border: #E8E8E8;
    --success: #27AE60;
    --warning: #F39C12;
    --info: #2980B9;
    --danger: #E53935;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html{overflow-x: hidden;}
body {
    font-family: 'Pretendard', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    font-size: 14px;
    overflow-x:hidden;
}

  /* 사이드바 */
.sidebar {
    width: 240px;
    background: var(--sidebar-bg);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-logo {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    cursor: pointer;
}

.sidebar-logo .logo-badge {
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
    transition: 0.3s;
}

.nav-section {
    margin-bottom: 4px;
}

.nav-section-title {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1.2px;
    padding: 12px 20px 4px;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 400;
    transition: all 0.15s;
    border-left: 3px solid transparent;
    user-select: none;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: rgba(255, 255, 255, 0.9);
}

.nav-item.active {
    background: rgba(229, 57, 53, 0.12);
    color: #FF6B6B;
    border-left-color: var(--primary);
    font-weight: 500;
}

.nav-item .nav-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    flex-shrink: 0;
}

.nav-item.active .nav-icon {
    opacity: 1;
}

.nav-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 20px 7px 46px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    transition: all 0.15s;
    border-left: 3px solid transparent;
    user-select: none;
}

.nav-sub-item:hover {
    color: rgba(255, 255, 255, 0.75);
    background: var(--sidebar-hover);
}

.nav-sub-item.active {
    color: #FF6B6B;
    border-left-color: var(--primary);
}

.sidebar-bottom {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

  /* 메인 */
.main {
    width: calc(100% - 240px);
    margin-left: 240px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.topbar-left .current-page {
    color: var(--text-primary);
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.content {
    width: 100%;
    padding: 28px;
    flex: 1;
}

  /* 섹션 헤더 */
.page-header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}
.page-header.dash{
    max-width: none;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* 카드 */
.card {
    width: 100%;
    max-width:1200px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.card.ua{
    max-width:1200px;
}
.card.card-info{
    margin-bottom: 20px;
    background: #f9f9f9;
}
.card.mc_detail{
    margin-bottom: 20px;
}
.card.wide{ max-width: 1400px !important;}
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.card-body { padding: 20px; }
.card-body .txt{
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
    font-weight: 400;
}
.card-body.brand{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: start;
    max-width: 1400px !important;
    font-size: 13px;
    padding: 12px 16px;
}

/* 주문관리 설명 관련 */
.top_right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-end;
    align-items: flex-end;
}
.no_show_list_info li {
    display: flex;
    gap: 8px;
    align-self: center;
    margin-bottom: 4px;
    padding: 2px 6px;
    font-size: 11px;
}
.no_show_list_info li.bg_red {
    background-color: #fdebeb;
}
.no_show_list_info li.bg_blue {
    background-color: #d4eeff;
}
.no_show_list_info li.bg_green {
    background-color: #82E0AA;
}

  /* 스탯 카드 */
.stats-grid {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--card-shadow);
}
.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-change {
    font-size: 12px;
    margin-top: 6px;
}

.stat-change.up {
    color: var(--success);
}

.stat-change.down {
    color: var(--danger);
}


.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 16px;
}

  /* 테이블 */
.table-wrap {
    width: 100%;
    max-width:1200px;

    overflow-x: auto;
}
.table-wrap.mc{
    max-width: 1400px !important;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead tr {
    background: #FAFAFA;
}

th {
    padding: 10px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    vertical-align: middle;
}
td.center{
    text-align: center;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #FAFAFA;
}

  /* 배지 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success {
    background: #E8F5E9;
    color: #2E7D32;
}

.badge-warning {
    background: #FFF8E1;
    color: #F57F17;
}

.badge-danger {
    background: #FFEBEE;
    color: #C62828;
}

.badge-info {
    background: #E3F2FD;
    color: #1565C0;
}

.badge-gray {
    background: #F5F5F5;
    color: #616161;
}

.badge-white {
    background: #E8F5E9;
    color: #1B5E20;
}

.badge-black {
    background: #FFEBEE;
    color: #B71C1C;
}

  /* 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.table-wrap.mc td button{border: 1px solid var(--border); background: #fff;}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg);
}

.btn-sm {
    padding: 7px 10px;
    font-size: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

  /* 필터 바 */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
}

.search-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 220px;
}

.search-input input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-primary);
    width: 100%;
    font-family: inherit;
}

.filter-date-range {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.filter-date-range input[type="date"] {
    border: none;
    outline: none;
    font-size: 13px;
    font-family: inherit;
    color: var(--text-primary);
    background: transparent;
}

.filter-date-range span {
    color: var(--text-muted);
}

/* 페이지네이션 */
.pagination_wrap{
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-muted);
}
.pagination_wrap.wide{
    max-width: 1400px;
}
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-muted);
}

/* == 회원 관리 == */

/* 하단 페이지네이션 랩 */
.bottom_wrap{
    width: 100%;
    max-width: 1200px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 회원 상세 모달 그리드 */
.member-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.member-modal-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.member-modal-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.member-modal-item--full {
    grid-column: span 2;
}

.member-modal-value {
    font-weight: 600;
}

#modal-point {
    font-weight: 600;
    color: var(--primary);
}

#modal-cashback {
    font-weight: 600;
    color: var(--success);
}

/* 데스크톱: 상세 텍스트 표시, 아이콘 숨김 */
.btn-label-icon { display: none; }
.btn-label-text { display: inline; }

select {
    /* 기본화살표 제거 */
    appearance: none;
    -webkit-appearance: none;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    outline: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center; /* ← 여기서 조정 */
}

/* 그리드 */
.grid-2 {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

  /* 페이지 숨김 */
.page-section {
    display: none;
}
.page-section.active {
    display: block;
}
.page-section .stat-wrap {
    width: 100%;
    max-width: 1200px;
}

  /* 썸네일 */
.product-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    object-fit: cover;
    flex-shrink: 0;

    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size: 18px; */
}
.product-thumb img{
    width: 100%;
}
.product-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-name {
    font-weight: 500;
    color: var(--text-primary);
}

.product-url {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

  /* 프로그레스 */
.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s;
}

  /* 도메인 카드 */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.domain-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.domain-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.domain-favicon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.domain-name {
    font-size: 13px;
    font-weight: 500;
}

.domain-count {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

  /* 탭 */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}
.tab-select-mobile { display: none; }

.tab {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab:hover:not(.active) {
    color: var(--text-primary);
}

  /* 플랫폼 카드 */
.platform-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    position: relative;
}
.platform-card_top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.platform-card_btn{
    margin-top: 14px;
    display: flex;
    gap: 6px;
}
/* 플랫폼 페이지 등록 전 */
.platform-card.no-data{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px;
}
.platform-card.no-data p{
    font-size: 13px;
    color: var(--text-muted);
}

.platform-card .platform-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.platform-card .platform-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.platform-stat {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.platform-stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

  /* 포인트 상태 */
.point-status {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.point-status-item {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.point-status-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.point-status-value {
    font-size: 20px;
    font-weight: 700;
}

  /* 통계 차트 placeholder */
.chart-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    border: 1px dashed var(--border);
}

/* 리포트 필터 */
.report-filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: #FAFAFA;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.filter-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}
.tr-no-data td{
    text-align: center;
    color: var(--text-muted);
    padding: 32px 0;
}

/* 액션 버튼 */
.action-btns {
    display: flex;
    gap: 6px;
}

/* 스크롤바 */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

  /* 모달 */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: white;
    border-radius: 14px;
    width: 480px;
    /* max-width: 90vw;
max-height: 90vh; */
    overflow-y: auto;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1;
}

.modal-body {
    padding: 20px 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.modal-footer.center{
    justify-content: center;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
}

.form-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.form-input:focus {
    border-color: var(--primary);
}

textarea.form-input {
    min-height: 80px;
    resize: vertical;
}

/* 알림 dot */
.noti-dot {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
}

/* 토글 스위치 */
.toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 20px;
    transition: .2s;
}

.toggle-slider:before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: .2s;
}

.toggle input:checked+.toggle-slider {
    background: var(--success);
}

.toggle input:checked+.toggle-slider:before {
    transform: translateX(16px);
}

.modal.open {
    display: flex !important;
}

  /* 모달 스타일 */
.modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 1000 !important;
    border-radius: 0px;
}

.modal.open {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-content {
    background: white;
    border-radius: 14px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding: 20px;
    height: 90vw;
    max-height: 610px;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.modal-content::-webkit-scrollbar { display: none; }

.tabs a.tab {
    text-decoration: none !important;
    color: #999 !important;
    /* 옅은 회색 */
    cursor: pointer;
    display: inline-block;
}

.tabs a.tab:hover {
    text-decoration: none !important;
    color: var(--text-primary) !important;
    /* 호버 시 진한색 */
}

.tabs a.tab.active {
    color: var(--primary) !important;
    /* active일 때 진한색 */
}

/* 햄버거 버튼 — 데스크탑에서 숨김 */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background 0.15s;
}

.hamburger-btn:hover {
    background: var(--bg);
}

/* 사이드바 오버레이 — 기본 숨김 */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99;
}

/* ==============================
    태그 리스트
============================== */
.tag-list-header.web,
.tag-item-row {
    display: grid;
    grid-template-columns: minmax(160px, 3fr) minmax(130px, 2fr) 110px 80px 80px 100px;
    align-items: center;
    gap: 0 12px;
    padding: 10px 16px;
}
.tag-list-header.mob{
    display: none;
    padding: 10px 16px;
}

.tag-list-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* 태그내역 없을때 */
.no-tag-item{
    display: flex;
    padding: 16px 0;
    align-items: center;
    justify-content: center;
}
.no-tag-item p{
    font-size: 13px;
    color: var(--text-muted);
}

/* 태그내역 있을때 */
.tag-item {
    border-bottom: 1px solid var(--border);
}
.tag-item:last-child { border-bottom: none; }

.tag-item-row {
    cursor: pointer;
    transition: background 0.15s;
}
.tag-item-row:hover { background: var(--bg-secondary); }

.tag-col-product { overflow: hidden; min-width: 0; }
.tag-col-url {
    font-size: 11px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0;
}
.tag-col-url a { padding: 12px; }
.tag-col-url a:hover { text-decoration: none; }
.tag-col-mall { font-size: 13px; color: var(--text-secondary); }
.tag-col-member { font-size: 13px; color: var(--text-muted); }
.tag-col-date { font-size: 13px; color: var(--text-muted); }
.tag-col-toggle { display: none; }
.tag-item-detail { display: none; }

/* = 쇼핑몰 설정 관리 UA = */
.mc-ua .mc-ua_top{
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 8px;
}
.mc-ua .mc-ua_top .top_txt{
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* (1)ua 설정 테이블 */
.td-name{font-weight: 600;}
.td-ua-second{
    font-family: monospace;
    font-size: 11px;
    color: var(--text-muted);
    max-width: 300px;
}
/* (2)웹뷰 설정 */
.mc-webview-table{
    width: 100%;
}
.top_txt{
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.4;
}
.td-sub-txt{
    font-size: 11px;
    color: var(--text-muted);
}
.ua-td-input{
    width: 70px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    font-family: inherit
}
/* (3)파싱 설정 */

/* (4)공통 인풋/셀렉트 */
.select-sm {
    padding: 4px 28px 4px 8px;
    font-size: 12px;
}
.ua-td-input-narrow { width: 60px; }
.mc-input-pattern,
.mc-input-popup,
.mc-input-text {
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    font-family: inherit;
}
.mc-input-pattern { width: 150px; }
.mc-input-popup   { width: 180px; }
.mc-input-text    { width: 200px; }
.mc-toggle-label {
    display: flex;
    flex-direction: column;
    align-items: first baseline;
    gap: 4px;
}
.mc-hint-primary {
    font-size: 11px;
    color: var(--primary);

    display: block;
}
.topbar-date {
    font-size: 12px;
    color: var(--text-muted);
}
.text-danger    { color: var(--danger); }
.col-active     { color: darkblue; }
.day-sat        { color: blue; }
.day-sun        { color: red; }
.status-use     { color: green; font-weight: bold; }
.status-cancel  { color: red;   font-weight: bold; }
.clickable      { cursor: pointer; }
.filter-bar-right { margin-left: auto; }

/* ── 모달 공통 ── */
.modal-content-wide { max-width: 860px; width: 90vw; }
.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 24px 16px 0px;
    border-bottom: 1px solid var(--border);
    justify-content: space-between;
}
.modal-title   { margin: 0; font-size: 18px; }
.modal-close   { background: none; border: none; font-size: 24px; cursor: pointer; line-height: 1; }
.modal-form    { display: grid; gap: 16px; }
.modal-footer  { display: flex; gap: 8px; justify-content: flex-end; }
.form-label    { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.form-input    { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-family: inherit; box-sizing: border-box; }
.form-textarea { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-family: inherit; box-sizing: border-box; min-height: 80px; resize: vertical; }
.link-primary {
    text-decoration: none;
    color: var(--text-muted);
    display: inline-block;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    /* text-overflow: ellipsis; */
    vertical-align: bottom;
    position: relative;
}
.link-primary[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 4px);
    left: 0;
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.td-muted      { color: var(--text-muted); }
.card-mb       { margin-bottom: 12px; }
html.modal-open,
body.modal-open { overflow: hidden; }
.td-thumb{width:36px; height:36px; object-fit:cover; border-radius:4px;}

/* 처리결과 세그먼트 컨트롤 */
.seg-ctrl { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.seg-opt { padding: 3px 9px; font-size: 11px; font-weight: 500; cursor: pointer; border: none; background: transparent; color: var(--text-muted); white-space: nowrap; transition: background .15s, color .15s; }
.seg-ctrl .seg-opt + .seg-opt { border-left: 1px solid var(--border); }
.seg-opt.seg-s.active { background: #e8f5e9; color: #27AE60; font-weight: 600; }
.seg-opt.seg-f.active { background: #ffebee; color: #E53935; font-weight: 600; }

/* ==============================
    반응형 (Responsive)
============================== */

/* 태블릿 (768px ~ 1199px) */
@media (max-width: 1199px) {
    .sidebar {
        width: 200px;
    }

    .main {
        width: calc(100% - 200px);
        margin-left: 200px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .domain-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* 모바일 (max 767px) */
@media (max-width: 767px) {

    /* 햄버거 버튼 표시 */
    .hamburger-btn {
        display: flex;
    }

    /* 사이드바 기본 숨김 */
    .sidebar {
        transform: translateX(-100%);
        width: 240px;
        transition: transform 0.25s ease;
    }

    /* 사이드바 열림 상태 */
    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
    }

    .main {
        margin-left: 0;
    }

    .topbar {
        padding: 0 16px;
    }

    .content {
        padding: 16px;
    }

    /* 그리드 2열로 축소 */
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }

    /* 2단 → 1단 */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .domain-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* 페이지 헤더 세로 정렬 */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* 필터바 세로 정렬 */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        min-width: unset;
    }

    select {
        width: 100%;
    }

    /* tabs-with-select가 있는 탭은 select로 대체 */
    .tabs-with-select { display: none; }
    .tab-select-mobile {
        display: block;
        width: 100%;
        margin-bottom: 20px;
        font-size: 14px;
        font-weight: 500;
    }

    /* select가 없는 일반 탭은 가로 스크롤 유지 */
    .tabs:not(.tabs-with-select) {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .tabs:not(.tabs-with-select) .tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
    /* stat-value 폰트 축소 */
    .stat-value {
        font-size: 20px;
    }

    /* 페이지네이션 */
    .pagination_wrap{
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    /* 모달 */
    .modal-content,
    .modal>div {
        width: 92vw !important;
        max-width: 92vw !important;
    }
    /* 테이블은 가로 스크롤 유지 */
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* select-sm은 table 내에서 width auto 유지 */
    .select-sm { width: auto; }

    /* UA 설정 카드형 */
    .mc-ua-table-wrap thead { display: none; }
    .mc-ua-table-wrap table,
    .mc-ua-table-wrap tbody { display: block; }
    .mc-ua-table-wrap tr {
        display: block;
        padding: 14px 16px;
        border-bottom: 1px solid var(--border);
    }
    .mc-ua-table-wrap tr:last-child { border-bottom: none; }
    .mc-ua-table-wrap tr:hover { background: #FAFAFA; }
    .mc-ua-table-wrap tr:hover td { background: transparent; }
    .mc-ua-table-wrap td {
        display: block;
        padding: 0;
        border: none;
    }
    .mc-ua-table-wrap td:nth-child(1) {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 4px;
    }
    .mc-ua-table-wrap td:nth-child(2) {
        overflow: hidden;
        /* text-overflow: ellipsis; */
        /* white-space: nowrap; */
        margin-bottom: 8px;
    }
    .mc-ua-table-wrap td:nth-child(3),
    .mc-ua-table-wrap td:nth-child(4) {
        display: inline-block;
        margin-right: 10px;
        font-size: 12px;
        color: var(--text-secondary);
        margin-bottom: 6px;
    }
    .mc-ua-table-wrap td:nth-child(5) { margin-top: 2px; }

    /* 회원 테이블 → 1행 압축 */
    .member-table-wrap thead { display: none; }
    .member-table-wrap table,
    .member-table-wrap tbody { display: block; }

    .member-table-wrap tr {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        border-bottom: 1px solid var(--border);
    }
    .member-table-wrap tr:last-child { border-bottom: none; }

    .member-table-wrap td {
        padding: 0;
        border: none;
    }

    /* 회원 ID */
    .member-table-wrap td:nth-child(1) {
        flex-shrink: 0;
        font-size: 12px;
        font-weight: 600;
        color: var(--text-muted);
    }
    /* 이메일 */
    .member-table-wrap td:nth-child(2) {
        flex: 1;
        font-size: 13px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }
    /* 소셜 뱃지 */
    .member-table-wrap td:nth-child(3) { flex-shrink: 0; }

    /* 가입일 ~ 캐시백 숨김 */
    .member-table-wrap td:nth-child(4),
    .member-table-wrap td:nth-child(5),
    .member-table-wrap td:nth-child(6),
    .member-table-wrap td:nth-child(7),
    .member-table-wrap td:nth-child(8),
    .member-table-wrap td:nth-child(9) { display: none; }

    /* 관리(버튼) */
    .member-table-wrap td:nth-child(10) { flex-shrink: 0; }

    /* 버튼: 상세 텍스트 숨기고 아이콘 표시 */
    .btn-label-text { display: none; }
    .btn-label-icon { display: inline; }


    /* 도메인 테이블 페이지 */
    .domain-table-wrap {
        overflow-x: visible;
    }
    .domain-table-wrap table,
    .domain-table-wrap tbody,
    .domain-table-wrap tr,
    .domain-table-wrap td {
        display: block;
        width: 100%;
    }
    .domain-table-wrap thead {
        display: none;
    }
    .domain-table-wrap tr {
        padding: 14px;
        border-bottom: 1px solid var(--border);
    }
    .domain-table-wrap tr:last-child {
        border-bottom: none;
    }
    .domain-table-wrap td {
        padding: 0;
        border: none;
    }
    .domain-table-wrap td:nth-child(1) {
        margin-bottom: 8px;
    }
    .domain-table-wrap td:nth-child(2) {
        font-weight: 600;
        font-size: 13px;
        margin-bottom: 4px;
    }
    .domain-table-wrap td:nth-child(3) {
        font-size: 12px;
        color: var(--text-secondary);
        margin-bottom: 8px;
    }
    .domain-table-wrap td:nth-child(4),
    .domain-table-wrap td:nth-child(5),
    .domain-table-wrap td:nth-child(6) {
        display: inline-flex;
        width: auto;
        margin-right: 10px;
        margin-bottom: 10px;
        font-size: 12px;
        color: var(--text-muted);
    }
    .domain-table-wrap td:nth-child(7) {
        margin-top: 4px;
    }
    .domain-table-wrap .action-btns,
    .domain-table-wrap td:nth-child(7) {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .domain-table-wrap .btn {
        flex-shrink: 0;
    }

    /* 태그 리스트 모바일 */
    .tag-list-header.web { display: none; }
    .tag-list-header.mob { display: block; }

    .tag-item-row {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 14px;
    }
    .tag-col-product { flex: 1; min-width: 0; }
    .tag-col-product .product-thumb { display: none !important;}
    .tag-col-url,
    .tag-col-member,
    .tag-col-date { display: none; }
    .tag-col-mall {
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .tag-col-type { flex-shrink: 0; }
    .tag-col-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        font-size: 15px;
        color: var(--text-muted);
        transition: transform 0.2s;
        flex-shrink: 0;
    }
    .tag-item.open .tag-col-toggle { transform: rotate(180deg); }
    .tag-item.open .tag-item-detail { display: block; }
    .tag-item-detail {
        padding: 12px 14px;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border);
    }
    .tag-detail-inner {
        display: flex;
        gap: 12px;
        align-items: flex-start;
    }
    .tag-detail-thumb {
        width: 56px;
        height: 56px;
        border-radius: 8px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border);
        overflow: hidden;
        background:#f0f0f0;
    }
    .tag-detail-thumb img{
        width: 100%;
    }
    .tag-detail-meta {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .tag-detail-meta > div {
        display: flex;
        align-items: baseline;
        gap: 8px;
        overflow: hidden;
    }
    .tag-detail-label {
        font-size: 11px;
        font-weight: 600;
        color: var(--text-muted);
        flex-shrink: 0;
        min-width: 48px;
    }
    .tag-detail-val {
        font-size: 12px;
        color: var(--text-secondary);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* 작은 모바일 (max 480px) */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    .domain-grid {
        grid-template-columns: 1fr;
    }
    .stat-value {
        font-size: 18px;
    }
    .content {
        padding: 12px;
    }
    .pagination-bar {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* 도메인 탭 수정 */
    .page-section .tab{
        display: flex;
        flex-direction: column;
        align-items: first baseline;
        gap: 4px;
        padding: 10px 16px;
    }

    /* 포인트 테이블 모바일 */
    .point-earn-wrap thead,
    .point-use-wrap thead { display: none; }

    .point-earn-wrap table,
    .point-earn-wrap tbody,
    .point-use-wrap table,
    .point-use-wrap tbody { display: block; }

    .point-earn-wrap tr,
    .point-use-wrap tr {
        position: relative;
        display: block;
        padding: 12px 14px;
        border-bottom: 1px solid var(--border);
    }
    .point-earn-wrap tr:last-child,
    .point-use-wrap tr:last-child { border-bottom: none; }

    .point-earn-wrap td,
    .point-use-wrap td { display: block; padding: 0; border: none; }

    /* 적립 테이블: 회원 ID */
    .point-earn-wrap td:nth-child(1) { font-size: 13px; font-weight: 600; margin-bottom: 4px; padding-right: 80px; }
    /* 적립 포인트 - inline */
    .point-earn-wrap td:nth-child(2) { display: inline; font-size: 13px; }
    /* 적립 사유 - inline, 구분자 · 앞에 */
    .point-earn-wrap td:nth-child(3) { display: inline; font-size: 12px; color: var(--text-muted); }
    .point-earn-wrap td:nth-child(3)::before { content: ' · '; }
    /* 상태 badge - 우상단 절대 위치 */
    .point-earn-wrap td:nth-child(4) { position: absolute; top: 12px; right: 14px; }
    /* 일시 */
    .point-earn-wrap td:nth-child(5) { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; }

    /* 사용 테이블: 회원 ID */
    .point-use-wrap td:nth-child(1) { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
    /* 사용 포인트 - inline */
    .point-use-wrap td:nth-child(2) { display: inline; font-size: 13px; }
    /* 사용 사유 - inline */
    .point-use-wrap td:nth-child(3) { display: inline; font-size: 12px; color: var(--text-muted); }
    .point-use-wrap td:nth-child(3)::before { content: ' · '; }
    /* 일시 */
    .point-use-wrap td:nth-child(4) { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
}

/* 1:1문의 */
.badge-pending {
    background: #FFF3CD;
    color: #856404;
}

.badge-answered {
    background: #D1ECF1;
    color: #0C5460;
}

.badge-closed {
    background: #E2E3E5;
    color: #383D41;
}

.inquiry-title {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
}

.inquiry-title:hover {
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
}

input.filter-input {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
}

input.filter-input:focus {
    border-color: var(--primary);
}
/* 1:1문의 상세 */
.inquiry-meta {
    display: flex;
    gap: 32px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.inquiry-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inquiry-meta-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}
.inquiry-meta-value {
    font-size: 13px;
    color: var(--text-primary);
}
.inquiry-content-box {
    background: var(--bg);
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
    min-height: 80px;
}
/* 답변 완료 */
.answer-content-box {
    background: #f8f8f8;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
    min-height: 80px;
}
textarea.form-input {
    min-height: 120px;
    resize: vertical;
}
.detail-card {
    max-width: 1200px;
    margin-bottom: 16px;
}
.inquiry-title-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* 이미지 미리보기 오버레이 */
/* 도메인 관리 관련 0511 */
.domain_btn_wrap .wrap{
    display: flex;
    gap: 4px;
}
table tbody td{
    word-break: keep-all;
}


.tag_view .modal-content{
    max-width: 1000px !important;
    max-height: 736px;
}
.tm-pg-btns,
.pg-btns {
    display: flex;
    gap: 4px;
}

/* 주문 상세보기 모달 */
.detail-modal {
    width: 440px;
    max-width: 92vw;
    max-height: 90vh;
    background: #fff;
    border-radius: 14px;
    overflow-y: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.detail-modal .modal-header{padding-left: 20px; margin-bottom: 0px;}
.detail-modal .modal-body { padding: 12px 24px; }
.detail-list { margin: 0; padding: 0; display: flex; flex-direction: column; }
.detail-item { display: flex; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); gap: 12px; }
.detail-item:last-child { border-bottom: none; }
.detail-label { width: 80px; flex-shrink: 0; font-size: 12px; color: var(--text-muted); font-weight: 500; padding-top: 1px; }
.detail-value { flex: 1; font-size: 13px; color: var(--text-primary); margin: 0; word-break: break-all; }
.detail-item--memo .detail-value { min-height: 52px; }

/* 썸네일 라이트박스 */
.thumb-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .75);
    align-items: center;
    justify-content: center;
}
.thumb-lightbox.open {
    display: flex;
}
.thumb-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.thumb-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .6);
    object-fit: contain;
}

.fail table td{
    padding: 4px 16px;
}

/* 모바일쿠폰 주문 관리 페이지 관련 */
.mc_product_img{
    padding: 12px;
    background-color: #fff;
    /* color: #fdebeb; */
    /* color: #d4eeff; */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 모바일쿠폰 상품관리- 상세페이지 관련 */
.detail_img_wrap{
    background:#fff;
}
.detail_img_wrap .imgbox{
    width: 200px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.detail_img_wrap .imgbox img{
    width: 140px;
    height: 140px;
    object-fit: contain;
}
.product-detail_textarea{
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    line-height: 1.6;
}
.product-detail_footer{
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.card-inner{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.detail_img_wrap label{
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.mc-product-info{
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mc-product-info.title{
    gap: 4px;
}
.mc-product-info > div > label,
.mc-product-info > label{
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary)
}
.mc-product-info > div > input{
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #f9f9f9;
    font-size: 13px;
}
/* 상품관리 > 셀렉트 박스 변경 후 */
#popup_overlay{
    position: fixed;
    z-index: 99998;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 3103px;
    /* background: rgb(255, 255, 255); */
    background: rgba(0, 0, 0, 0.6) !important;
    opacity: 1 !important;
}
#popup_title{
    font-size: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #bbbbbb;
    margin-bottom: 8px;
}
.ui-draggable{
    width: 30% !important;
    max-width: 450px !important;
    background:#fff;
    padding: 20px !important;
    border-radius: 8px !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
}

#popup_panel{
    display: flex;
    justify-content: center;
    gap: 4px;
    width: 100%;
    margin-top: 24px;
}

#popup_panel input[type="button"]{
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 14px;
    background: #fff;
}
#popup_message center{ margin-top: 24px; }
#popup_message center p { line-height: 1.6;}
#popup_message center p.mt20 { margin-top: 20px;}
#popup_message .input_wrap{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 12px;
    column-gap: 32px;
    margin-top: 20px;
    margin-bottom: 0px;
}
#popup_message .input_wrap br{display: none !important;}
#popup_message .input_wrap label{
    width: 100%;
    display: flex;
    justify-content: start;
    gap: 8px;
    /* border: 1px solid red; */
}

select:disabled {
    background:#f8f8f8; /* 회색 배경 */
    color: var(--color-text-tertiary);             /* 흐린 텍스트 */
    cursor: not-allowed;
    opacity: 1; /* 브라우저 기본 흐림 제거하고 직접 제어 */
}


/* 1:1문의 상세내역 */
.attach-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.attach-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.attach-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: white;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.attach-thumb img{
    width: 100%;
}
.attach-img {
    cursor: pointer;
}
.attach-img:hover {
    background: #EEEEF2;
}
.attach-info {
    flex: 1;
    min-width: 0;
}
.attach-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.attach-size {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}
.attach-btn {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}
.attach-btn:hover {
    background: var(--bg);
    color: var(--primary);
}

/* 이미지 미리보기 오버레이 */
.img-preview-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.img-preview-overlay_wrap {
    position: relative;
    width: min(80vw, 800px);
}
.img-preview-overlay_wrap_box {
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}
.img-preview-overlay_wrap_box img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    max-width: 600px;
}
.img-preview-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.img-preview-close:hover {
    color: var(--primary);
}
@media (max-width: 767px) {
    .img-preview-overlay_wrap {
        width: 92vw;
    }
    .img-preview-overlay_wrap_box img {
        max-height: 70vh;
    }
}

/* 로그인페이지 */
.login-wrap {
    width: 100vw;
    min-height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
}
.login-card {
    background: var(--white);
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.login-logo {
    text-align: center;
    margin-bottom: 36px;
}
.login-logo .logo-text {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.login-logo .logo-img{
    /* border: 1px solid red; */
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.login-logo .logo-img img{
    width: 160px;
}
.login-logo .logo-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1.5px;
    margin-top: 4px;
}
.login-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
}
.login-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    justify-content: center;
    border-radius: 8px;
    margin-top: 8px;
}
.login-error {
    font-size: 12px;
    color: var(--danger);
    text-align: center;
    margin-top: 12px;
    min-height: 18px;
}