@charset "utf-8";

/* Tags */
.list-tags { margin-bottom:15px; }
.list-tags .nav { background:#fafafa; border-right:1px solid #ddd; border-top:1px solid #ddd; }
.list-tags .nav li { border-top:0px !important; }
.list-tags .tags-item { padding:0px; overflow:hidden; margin:-4px 0px -6px; margin-right:-12px; }
.list-tags .tags-item .chk-tag { text-align:left !important; background: none !important; padding:0px !important; margin: 0px !important; box-shadow:none !important; display:inline-block !important; height:28px; line-height:28px !important; }
.list-tags .tags-item .chk-tag span { font-family:var(--op-font-sans, inherit); font-weight:normal; display:inline-block; margin:0px; padding-right:12px; line-height:28px; }
.list-tags .tags-item .chk-tag.active span,
.list-tags .tags-item .chk-tag:focus span { color:orangered; font-weight:bold; }
.list-tags .tags-item .chk-tag.active span:before,
.list-tags .tags-item .chk-tag:focus span:before { font-family:FontAwesome; content:"\f00c"; padding-right:4px; }
.list-tags .tags-submit { border:1px solid #ddd; border-top:0px; padding:0px 15px 10px; }
.list-tags .tags-submit .box-submit { border-top:1px dotted #ccc; padding-top:10px; }
.list-tags .tags-line { border-top:1px dotted #ccc; margin:6px 10px; margin-left:0px; height:1px; }

/* Top Search */
.list-tsearch { border:1px solid #ddd; background:#fafafa; padding:20px 15px 3px; margin-bottom:15px; }

/* 모던 카테고리 필 칩 */
.list-category {
    margin-bottom: 15px;
    clear: both;
}
.list-category .nav-tabs {
    border-bottom: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}
.list-category .nav-tabs > li {
    float: none !important;
    margin-bottom: 0 !important;
}
.list-category .nav-tabs > li > a,
.list-category .nav-tabs > li > button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: 38px !important;
    min-width: 0 !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 36px !important;
    transition: all 0.15s ease !important;
    margin: 0 !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}
.list-category .nav-tabs > li.active > a,
.list-category .nav-tabs > li.active > button,
.list-category .nav-tabs > li > a:hover,
.list-category .nav-tabs > li > button:hover {
    background: var(--op-primary, #3dbf62) !important;
    border-color: var(--op-primary, #3dbf62) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(61, 191, 98, 0.25) !important;
}
.list-category .dropdown {
    margin-bottom: 15px;
}
.list-category .category-scroll-btn {
    display: none !important;
}

/* ==========================================================================
   Mobile Horizontal Swipe Category Strip (방안 A: 1줄 가로 스와이프 칩 바)
   ========================================================================== */
@media (max-width: 768px) {
    .list-category {
        margin: 4px 0 10px 0 !important;
        clear: both;
    }
    .list-category .list-category-wrap {
        position: relative;
        margin: 0 -10px !important;
        overflow: hidden;
    }
    .list-category .list-category-wrap::before,
    .list-category .list-category-wrap::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 32px;
        pointer-events: none;
        z-index: 3;
        opacity: 0;
        transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .list-category .list-category-wrap::before {
        left: 0;
        background: linear-gradient(to right, rgba(255, 255, 255, 0.96) 20%, rgba(255, 255, 255, 0) 100%);
    }
    .list-category .list-category-wrap::after {
        right: 0;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.96) 20%, rgba(255, 255, 255, 0) 100%);
    }
    .list-category .list-category-wrap.can-scroll-left::before {
        opacity: 1;
    }
    .list-category .list-category-wrap.can-scroll-right::after {
        opacity: 1;
    }
    .list-category .category-scroll-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 26px;
        height: 26px;
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.96) !important;
        border: 1px solid rgba(203, 213, 225, 0.9) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
        color: #475569 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 14px !important;
        line-height: 1 !important;
        z-index: 5;
        padding: 0 !important;
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.15s ease, background-color 0.15s ease !important;
    }
    .list-category .category-scroll-btn:active {
        transform: translateY(-50%) scale(0.92) !important;
        background: #f1f5f9 !important;
    }
    .list-category .btn-scroll-left {
        left: 4px;
    }
    .list-category .btn-scroll-right {
        right: 4px;
    }
    .list-category .list-category-wrap.can-scroll-left .btn-scroll-left {
        opacity: 1;
        pointer-events: auto;
    }
    .list-category .list-category-wrap.can-scroll-right .btn-scroll-right {
        opacity: 1;
        pointer-events: auto;
    }
    .list-category .list-category-track,
    .list-category .sub-bs {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        padding: 4px 10px 6px 10px !important;
        margin: 0 !important;
    }
    .list-category .list-category-track::-webkit-scrollbar,
    .list-category .sub-bs::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    .list-category .nav-tabs.nav-justified,
    .list-category .nav-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        border-bottom: 0 !important;
        padding: 0 16px 0 0 !important;
        margin: 0 !important;
        width: max-content !important;
        min-width: min-content !important;
    }
    .list-category .nav-tabs.nav-justified > li,
    .list-category .nav-tabs > li {
        width: auto !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        float: none !important;
        margin: 0 !important;
        display: inline-flex !important;
    }
    .list-category .nav-tabs > li > a,
    .list-category .nav-tabs > li > button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        height: 36px !important;
        line-height: 34px !important;
        padding: 0 14px !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        border-radius: 18px !important;
        white-space: nowrap !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
        transition: all 0.15s ease !important;
    }
    .list-category .nav-tabs > li.active > a,
    .list-category .nav-tabs > li.active > button {
        background: var(--op-primary, #3dbf62) !important;
        border-color: var(--op-primary, #3dbf62) !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        box-shadow: 0 2px 6px rgba(61, 191, 98, 0.32) !important;
    }
    .op-category-toggle {
        display: none !important;
    }
    .list-category .sub-bs {
        margin-top: 6px !important;
    }
}

/* Category Toggle Bar */
.op-category-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 38px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 8px;
}
.op-category-toggle:hover {
    background: #f1f5f9;
    color: var(--op-primary, #3dbf62);
}
.op-category-toggle i {
    font-size: 12px;
    color: #64748b;
}

/* List */
.list-wrap { width:100%; }
.list-admin { text-align:center; margin:15px 0px; }
.list-btn .sort-drop { min-width:120px !important; left:auto !important; right:0px !important; }
.list-btn .sort-drop .sort a { color:crimson !important; font-weight:bold !important; }
.is-pc .ko .list-btn .sort-drop { font-size: 12px; }

/* Page */
/* Delegated to colorset.css unified modern pagination system */

/* View */
.view-wrap { width:100%; overflow:hidden; }
.view-wrap.view-modal { padding:5px; margin:0px; }
.view-btn { margin:0px 0px 30px; }
.view-btn i { margin-right:2px; }

/* Write */
.write-wrap { width:100%; overflow:hidden; }

@media all and (max-width:460px) {
	.responsive .view-btn i { margin-right:0px; }
}

/* ==========================================================================
   추가: 쿠폰 타이틀 및 본문 액션 버튼 (list.rows.php, view.skin.php 이관)
   ========================================================================== */
.list-board .title_head {
    font-weight: bold;
    margin-left: 10px;
}

.view-wrap .title_head {
    font-weight: bold;
}

/* ==========================================================================
   본문 액션 버튼 및 레이아웃 요소 (모던 반응형 그리드 & op-basic/review 규격 통일)
   ========================================================================== */
.view-action-btns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    margin: 10px 0;
}

.title_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    min-width: 100px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--op-primary, #3dbf62);
    border: 1px solid var(--op-primary, #3dbf62);
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.15s ease;
    margin: 0;
}

.title_btn:hover {
    background-color: #2ea850;
    border-color: #2ea850;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(46, 168, 80, 0.3);
}

.title_btn.view_btn_call {
    min-width: 130px;
    gap: 6px;
    background-color: #ff5722;
    border-color: #ff5722;
}

.title_btn.view_btn_call:hover {
    background-color: #e64a19;
    border-color: #e64a19;
}

.title_btn.btn-call {
    line-height: 1.2em;
}

.title_btn.view_btn_dn,
.title_btn.view_btn_up {
    background-color: var(--op-surface-muted, #f1f5f9);
    border-color: #cbd5e1;
    color: #334155;
}

.title_btn.view_btn_dn:hover,
.title_btn.view_btn_up:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

.title_btn.disabled,
.title_btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.title_btn.view_btn_coupon {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
    color: #ffffff;
}

.title_btn.view_btn_coupon:hover {
    background-color: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

.title_btn i {
    margin-right: 5px;
    font-size: 13px;
}

.title_btn.view_btn_call i {
    font-size: 15px;
    margin-right: 6px;
}

.view_btn_up,
.view_btn_dn,
.view_btn_gopost,
.view_btn_coupon,
.view_btn_call {
    font-size: 13px !important;
}

#content_footer_menu {
    margin-bottom: 10px;
}

@media all and (max-width: 768px) {
    .view-action-btns {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 8px 0;
        margin: 8px 0;
    }

    .title_btn {
        width: 100% !important;
        min-width: 0 !important;
        height: 42px;
        font-size: 13.5px;
        padding: 0 8px;
        border-radius: 8px;
    }

    .title_btn.view_btn_call {
        grid-column: span 2;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 0.3px;
    }

    .title_btn.full-span,
    .title_btn.btn-full-mobile {
        grid-column: span 2;
    }
}

.coupon-view-thumb {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--op-border, #000000);
}

/* ==========================================================================
   스마트 하이브리드 상호 칩 & 쿠폰 뱃지 & 듀얼 톤 타이포그래피 (op-basic/review 규격 통일)
   ========================================================================== */

/* 스마트 하이브리드 상호/지역 칩 (PC: 114px 최소폭 칼정렬 + 긴 상호 100% 온전 노출) */
.comp-badge-chip-pc {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 114px !important;
    width: max-content !important;
    box-sizing: border-box !important;
    gap: 3.5px !important;
    padding: 3px 8px !important;
    border-radius: 5px !important;
    line-height: 1.25 !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    margin: 0 7px 0 0 !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
    letter-spacing: -0.02em !important;
    float: none !important;
    transition: all 0.15s ease !important;
}
a.item-subject:hover .comp-badge-chip-pc,
.comp-badge-chip-pc:hover {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
}
.comp-badge-chip-pc .comp-region {
    flex-shrink: 0 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    letter-spacing: -0.02em !important;
}
.comp-badge-chip-pc .comp-dot {
    flex-shrink: 0 !important;
    font-size: 10px !important;
    color: #94a3b8 !important;
    margin: 0 1px !important;
    opacity: 0.8 !important;
}
.comp-badge-chip-pc .comp-name {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em !important;
}
a.item-subject:hover .comp-badge-chip-pc .comp-name,
.comp-badge-chip-pc:hover .comp-name {
    color: #020617 !important;
}

/* 모던 에메랄드 쿠폰 캡슐 뱃지 (티켓 아이콘 + 브랜드 민트/에메랄드 틴트) */
.badge-coupon {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #059669 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    padding: 2.5px 6.5px !important;
    border-radius: 4px !important;
    letter-spacing: -0.02em !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    margin-right: 5px !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
}
.badge-coupon i {
    font-size: 10.5px !important;
    color: #059669 !important;
    transform: rotate(-10deg);
}
a.item-subject:hover .badge-coupon {
    background: #d1fae5 !important;
    border-color: #6ee7b7 !important;
    color: #047857 !important;
}

/* 모던 오렌지 알림 배지 (공지사항 전용 - Miso-Basic / op-review 규격 일원화) */
.label-notice,
.list-board .wr-notice {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 6px !important;
    height: 20px !important;
    min-width: 36px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    color: #ffffff !important;
    background-color: var(--op-accent, #ff490f) !important;
    background-image: none !important;
    border-radius: 4px !important;
    letter-spacing: -0.02em !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    margin-right: 6px !important;
    box-shadow: 0 1px 2px rgba(255, 73, 15, 0.25) !important;
}

/* 공지사항 행 및 마지막 공지 분리선 */
.list-board .list-body li.is-notice-row > div,
.list-board .list-body li.bg-light > div {
    background-color: #f7faf8 !important;
}
.list-board .list-body li.is-notice-row:hover > div,
.list-board .list-body li.bg-light:hover > div {
    background-color: #edf4ee !important;
}
.list-board .list-body li.is-last-notice {
    border-bottom: 2px solid #cbd5e1 !important;
}
.list-board .list-body li.is-notice-row .subject-title {
    font-weight: 700 !important;
}

/* 1줄 단위 교차 듀얼 톤 타이포그래피 (슬레이트 블랙 & 딥 인디고 네이비) */
.subject-title.tone-slate {
    color: var(--op-title-tone-slate, #0f172a) !important;
}
.subject-title.tone-indigo {
    color: var(--op-title-tone-indigo, #1e3a8a) !important;
}
a.item-subject:hover .subject-title {
    color: var(--op-primary, #3dbf62) !important;
}

/* 모바일 화면 (768px 이하) 스마트 스케일링 */
@media all and (max-width: 768px) {
    .comp-badge-chip-pc {
        min-width: auto !important;
        padding: 2px 5px !important;
        margin-right: 4px !important;
        font-size: 11px !important;
    }
    .comp-badge-chip-pc .comp-name {
        font-size: 11.5px !important;
    }
    .badge-coupon {
        font-size: 10px !important;
        padding: 2px 5px !important;
        margin-right: 3px !important;
    }
}

/* ==========================================================================
   다크모드 전용 서피스 및 고대비 텍스트 (html.theme-dark / body.theme-dark)
   ========================================================================== */
html.theme-dark .comp-badge-chip-pc,
body.theme-dark .comp-badge-chip-pc {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: none !important;
}
html.theme-dark .comp-badge-chip-pc .comp-region,
body.theme-dark .comp-badge-chip-pc .comp-region {
    color: #94a3b8 !important;
}
html.theme-dark .comp-badge-chip-pc .comp-dot,
body.theme-dark .comp-badge-chip-pc .comp-dot {
    color: #64748b !important;
}
html.theme-dark .comp-badge-chip-pc .comp-name,
body.theme-dark .comp-badge-chip-pc .comp-name {
    color: #f1f5f9 !important;
    text-shadow: none !important;
}
html.theme-dark a.item-subject:hover .comp-badge-chip-pc,
html.theme-dark .comp-badge-chip-pc:hover,
body.theme-dark a.item-subject:hover .comp-badge-chip-pc,
body.theme-dark .comp-badge-chip-pc:hover {
    background: #334155 !important;
    border-color: #475569 !important;
}
html.theme-dark a.item-subject:hover .comp-badge-chip-pc .comp-name,
body.theme-dark a.item-subject:hover .comp-badge-chip-pc .comp-name {
    color: #ffffff !important;
}

html.theme-dark .badge-coupon,
body.theme-dark .badge-coupon {
    background: #064e3b !important;
    border-color: #047857 !important;
    color: #6ee7b7 !important;
}
html.theme-dark .badge-coupon i,
body.theme-dark .badge-coupon i {
    color: #a7f3d0 !important;
}
html.theme-dark a.item-subject:hover .badge-coupon,
body.theme-dark a.item-subject:hover .badge-coupon {
    background: #047857 !important;
    border-color: #10b981 !important;
    color: #ecfdf5 !important;
}

html.theme-dark .subject-title.tone-slate,
body.theme-dark .subject-title.tone-slate {
    color: var(--op-title-tone-slate, #f1f5f9) !important;
}
html.theme-dark .subject-title.tone-indigo,
body.theme-dark .subject-title.tone-indigo {
    color: var(--op-title-tone-indigo, #93c5fd) !important;
}
html.theme-dark a.item-subject:hover .subject-title,
body.theme-dark a.item-subject:hover .subject-title {
    color: var(--op-primary, #3dbf62) !important;
}

/* 모바일 댓글 수 메타 (item-details) */
.list-board .item-details .wr-comment {
    color: var(--op-accent, #ff490f) !important;
    font-size: 12px !important;
    font-weight: bold !important;
    display: inline-flex !important;
    align-items: center !important;
}
.list-board .item-details .wr-comment i {
    color: #a0a0a0 !important;
    margin-right: 3px !important;
    font-size: 11px !important;
}

/* 1. 카테고리 필 칩 다크모드 */
html.theme-dark .list-category .nav-tabs > li > a,
html.theme-dark .list-category .nav-tabs > li > button,
body.theme-dark .list-category .nav-tabs > li > a,
body.theme-dark .list-category .nav-tabs > li > button {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
    box-shadow: none !important;
}
html.theme-dark .list-category .nav-tabs > li.active > a,
html.theme-dark .list-category .nav-tabs > li.active > button,
body.theme-dark .list-category .nav-tabs > li.active > a,
body.theme-dark .list-category .nav-tabs > li.active > button,
html.theme-dark .list-category .nav-tabs > li > a:hover,
html.theme-dark .list-category .nav-tabs > li > button:hover,
body.theme-dark .list-category .nav-tabs > li > a:hover,
body.theme-dark .list-category .nav-tabs > li > button:hover {
    background: var(--op-primary, #3dbf62) !important;
    border-color: var(--op-primary, #3dbf62) !important;
    color: #fff !important;
}
html.theme-dark .list-category .list-category-wrap::before,
body.theme-dark .list-category .list-category-wrap::before {
    background: linear-gradient(to right, rgba(24, 24, 29, 0.96) 20%, rgba(24, 24, 29, 0) 100%) !important;
}
html.theme-dark .list-category .list-category-wrap::after,
body.theme-dark .list-category .list-category-wrap::after {
    background: linear-gradient(to left, rgba(24, 24, 29, 0.96) 20%, rgba(24, 24, 29, 0) 100%) !important;
}
html.theme-dark .list-category .category-scroll-btn,
body.theme-dark .list-category .category-scroll-btn {
    background: rgba(30, 41, 59, 0.96) !important;
    border-color: rgba(71, 85, 105, 0.9) !important;
    color: #e2e8f0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45) !important;
}
html.theme-dark .list-category .category-scroll-btn:active,
body.theme-dark .list-category .category-scroll-btn:active {
    background: #334155 !important;
}

/* 카테고리 토글바 다크모드 */
html.theme-dark .op-category-toggle,
body.theme-dark .op-category-toggle {
    background: #18181d !important;
    border-color: #272730 !important;
    color: #cbd5e1 !important;
}
html.theme-dark .op-category-toggle:hover,
body.theme-dark .op-category-toggle:hover {
    background: #202028 !important;
    color: var(--op-primary, #3dbf62) !important;
}
html.theme-dark .op-category-toggle i,
body.theme-dark .op-category-toggle i {
    color: #94a3b8 !important;
}

/* 댓글 아이콘 다크모드 */
html.theme-dark .list-board .item-details .wr-comment i,
body.theme-dark .list-board .item-details .wr-comment i {
    color: #64748b !important;
}

/* 공지사항 다크모드 */
html.theme-dark .list-board .list-body li.is-notice-row > div,
body.theme-dark .list-board .list-body li.is-notice-row > div {
    background-color: #1a221d !important;
}
html.theme-dark .list-board .list-body li.is-last-notice,
body.theme-dark .list-board .list-body li.is-last-notice {
    border-bottom: 2px solid #334155 !important;
}

/* 본문 액션 버튼 다크모드 */
html.theme-dark .title_btn,
body.theme-dark .title_btn,
body[data-theme="dark"] .title_btn {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
    color: #f3f4f6 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

html.theme-dark .title_btn:hover,
body.theme-dark .title_btn:hover,
body[data-theme="dark"] .title_btn:hover {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: #ffffff !important;
}

html.theme-dark .title_btn.view_btn_call,
body.theme-dark .title_btn.view_btn_call,
body[data-theme="dark"] .title_btn.view_btn_call {
    background-color: #c2410c !important;
    border-color: #ea580c !important;
    color: #ffffff !important;
}

html.theme-dark .title_btn.view_btn_call:hover,
body.theme-dark .title_btn.view_btn_call:hover,
body[data-theme="dark"] .title_btn.view_btn_call:hover {
    background-color: #ea580c !important;
    border-color: #f97316 !important;
}

html.theme-dark .title_btn.view_btn_coupon,
body.theme-dark .title_btn.view_btn_coupon,
body[data-theme="dark"] .title_btn.view_btn_coupon {
    background-color: #0369a1 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}

html.theme-dark .title_btn.view_btn_coupon:hover,
body.theme-dark .title_btn.view_btn_coupon:hover,
body[data-theme="dark"] .title_btn.view_btn_coupon:hover {
    background-color: #0284c7 !important;
    border-color: #38bdf8 !important;
}

html.theme-dark .title_btn.view_btn_dn,
html.theme-dark .title_btn.view_btn_up,
body.theme-dark .title_btn.view_btn_dn,
body.theme-dark .title_btn.view_btn_up,
body[data-theme="dark"] .title_btn.view_btn_dn,
body[data-theme="dark"] .title_btn.view_btn_up {
    background-color: #111827 !important;
    border-color: #1f2937 !important;
    color: #9ca3af !important;
}

html.theme-dark .title_btn.view_btn_dn:hover,
html.theme-dark .title_btn.view_btn_up:hover,
body.theme-dark .title_btn.view_btn_dn:hover,
body.theme-dark .title_btn.view_btn_up:hover,
body[data-theme="dark"] .title_btn.view_btn_dn:hover,
body[data-theme="dark"] .title_btn.view_btn_up:hover {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
    color: #f9fafb !important;
}

/* ==========================================================================
   하단 목록/수정/이전/다음 캡슐 버튼 바 (.view-wrap .view-btn)
   ========================================================================== */
.view-wrap .view-btn,
.view-btn {
    margin: 20px 0 28px !important;
}
.view-wrap .view-btn .btn-group,
.view-btn .btn-group {
    display: inline-flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}
.view-wrap .view-btn .btn-group > .btn,
.view-btn .btn-group > .btn,
.view-wrap .view-btn .btn,
.view-btn .btn {
    float: none !important;
    margin: 0 !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    padding: 6px 14px !important;
    height: 36px !important;
    line-height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    text-shadow: none !important;
    transition: all 0.15s ease !important;
}
.view-wrap .view-btn .btn i,
.view-btn .btn i {
    font-size: 13px !important;
    color: inherit !important;
    margin-right: 2px !important;
}
.view-wrap .view-btn .btn:hover,
.view-btn .btn:hover,
.view-wrap .view-btn .btn:focus,
.view-btn .btn:focus,
.view-wrap .view-btn .btn:active,
.view-btn .btn:active {
    background: #f1f5f9 !important;
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    text-shadow: none !important;
}

/* 관리자 삭제/수정 등 경고 버튼 대응 (btn-darkred) */
.view-wrap .view-btn .btn.btn-darkred,
.view-btn .btn.btn-darkred {
    background: #fef2f2 !important;
    background-color: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #dc2626 !important;
}
.view-wrap .view-btn .btn.btn-darkred:hover,
.view-btn .btn.btn-darkred:hover {
    background: #fee2e2 !important;
    background-color: #fee2e2 !important;
    border-color: #f87171 !important;
    color: #b91c1c !important;
}

/* Dark Mode */
html.theme-dark .view-wrap .view-btn .btn,
body.theme-dark .view-wrap .view-btn .btn,
html.theme-dark .view-btn .btn,
body.theme-dark .view-btn .btn,
body[data-theme="dark"] .view-wrap .view-btn .btn,
body[data-theme="dark"] .view-btn .btn {
    background: #18181d !important;
    background-color: #18181d !important;
    border-color: #272730 !important;
    color: #cbd5e1 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
html.theme-dark .view-wrap .view-btn .btn:hover,
body.theme-dark .view-wrap .view-btn .btn:hover,
html.theme-dark .view-btn .btn:hover,
body.theme-dark .view-btn .btn:hover,
body[data-theme="dark"] .view-wrap .view-btn .btn:hover,
body[data-theme="dark"] .view-btn .btn:hover {
    background: #252530 !important;
    background-color: #252530 !important;
    border-color: #3f3f4e !important;
    color: #f1f5f9 !important;
}

html.theme-dark .view-wrap .view-btn .btn.btn-darkred,
body.theme-dark .view-wrap .view-btn .btn.btn-darkred,
body[data-theme="dark"] .view-wrap .view-btn .btn.btn-darkred {
    background: rgba(239, 68, 68, 0.15) !important;
    background-color: rgba(239, 68, 68, 0.15) !important;
    border-color: #7f1d1d !important;
    color: #f87171 !important;
}
html.theme-dark .view-wrap .view-btn .btn.btn-darkred:hover,
body.theme-dark .view-wrap .view-btn .btn.btn-darkred:hover,
body[data-theme="dark"] .view-wrap .view-btn .btn.btn-darkred:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    background-color: rgba(239, 68, 68, 0.25) !important;
    border-color: #ef4444 !important;
    color: #fca5a5 !important;
}

@media (max-width: 768px) {
    .view-wrap .view-btn,
    .view-btn {
        text-align: center !important;
        margin: 15px 0 20px !important;
    }
    .view-wrap .view-btn .btn-group,
    .view-btn .btn-group {
        justify-content: center !important;
        gap: 4px !important;
    }
    .view-wrap .view-btn .btn,
    .view-btn .btn {
        padding: 5px 10px !important;
        font-size: 12.5px !important;
        height: 34px !important;
    }
}


