/* Common CSS - Consolidated from layout.css and style.css */

/* =========================================
   Layout Containers
   ========================================= */
.main-container {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* 홈페이지에서는 전체폭, 여백 없음 */
body.page-home .main-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* 서브페이지에서는 템플릿 설정 너비 사용 */
body:not(.page-home) .main-container {
    max-width: var(--site-width) !important;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 서브페이지의 모든 컨테이너에 템플릿 설정 적용 */
body:not(.page-home) .container,
body:not(.page-home) * .container {
    max-width: var(--site-width) !important;
    margin: 0 auto !important;
}

/* 서브페이지 콘텐츠 영역 강제 적용 */
body:not(.page-home) .canvas-stage.stage-box,
body:not(.page-home) .main-section .container,
body:not(.page-home) .main-section.grid-section .container,
body:not(.page-home) .content-area,
body:not(.page-home) .page-content {
    max-width: var(--site-width) !important;
    margin: 0 auto !important;
}

/* 서브페이지 모든 가능한 컨테이너 요소 */
body:not(.page-home) .wrapper,
body:not(.page-home) .inner,
body:not(.page-home) .section,
body:not(.page-home) .content {
    max-width: var(--site-width) !important;
    margin: 0 auto !important;
}

/* =========================================
   Header & Navigation Styles
   ========================================= */
.top-bar {
    display: block;
    /* PC에서는 표시 */
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 2px 0px 4px 0;
    font-size: 13px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.top-bar-container {
    max-width: var(--site-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0px;
    width: 100%;
}

.top-bar-left {
    color: #666;
    display: flex;
    align-items: center;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-right a {
    color: #666;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 3px;
}

.top-bar-right a:hover {
    color: #2c5aa0;
    background: #fff;
}

.top-bar-right strong {
    color: #2c5aa0;
    font-weight: 600;
}

.top-bar-right a i {
    margin-right: 0px;
    font-size: 12px;
}

.admin-link {
    background: #e74c3c !important;
    color: white !important;
    font-weight: 500 !important;
    padding: 0px 8px 2px 8px !important;
    border-radius: 3px;
}

.admin-link:hover {
    background: #c0392b !important;
}

.main-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
    border-bottom: 1px solid #ddd;
    transition: box-shadow 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: var(--site-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0px;
    height: 80px;
    width: 100%;
}

.logo {
    padding: 4px 0 0px 0;
}

.logo img {
    /* height: 60px !important; */
    /* header-logo는 별도 스타일 적용 */
}

/* header-logo는 .logo와 별도로 처리 */
.header-logo.logo img {
    /* height: auto !important; */
}

/* =========================================
   로고 스타일 (모든 로고 관련 CSS 통합)
   ========================================= */

/* header-logo 기본 스타일 */
.header-logo {
    display: inline-block !important;
    width: auto !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 4px 0 0px 0;
    align-items: center;
}

/* header-container 내부 header-logo */
.header-container .header-logo {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
}

/* PC/모바일 로고 표시 제어 */
.header-logo.pc-logo {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    /* 자식 img의 인라인 스타일 width가 적용되도록 부모 크기 제한 제거 */
}

.header-logo.pc-logo img {
    /* 인라인 스타일의 width가 적용되도록 CSS에서 width 속성 설정하지 않음 */
    max-width: none !important;
}

.header-logo.mobile-logo {
    display: none !important;
    width: auto !important;
    max-width: none !important;
}

.header-logo.mobile-logo img {
    /* 인라인 스타일의 width가 적용되도록 CSS에서 width 속성 설정하지 않음 */
    max-width: none !important;
}

/* header-logo 링크 */
.header-logo a {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    line-height: 1;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--pc-main-color, #2563eb);
    flex-shrink: 0;
}

.header-container .header-logo a {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
}

/* header-logo 이미지 */
.header-logo img,
.mobile-menu-logo img {
    height: auto !important;
    /*max-height: 38px !important;*/
    display: block !important;
    object-fit: contain;
    max-width: none !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    /* width는 인라인 스타일로 설정된 값 사용 - CSS에서 width를 설정하지 않음 */
    /* 인라인 스타일의 width가 적용되도록 CSS에서 width 속성 제거 */
}

/* mobile-menu-logo */
.mobile-menu-logo {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.mobile-menu-logo img {
    max-width: none !important;
    /* width는 인라인 스타일로 설정된 값 사용 - CSS에서 width를 설정하지 않음 */
    /* 인라인 스타일의 width가 적용되도록 CSS에서 width 속성 제거 */
}

/* 모바일 반응형 */
@media (max-width: 1024px) {
    .header-logo.pc-logo {
        display: none !important;
    }
    
    .header-logo.mobile-logo {
        display: block !important;
    }
    
    .header-logo a {
        font-size: 18px;
    }
    
    .header-logo img {
        margin-top: 4px !important;
        /*max-height: 32px !important;*/
        max-width: none !important;
        /* width는 인라인 스타일로 설정된 값 사용 - CSS에서 width를 설정하지 않음 */
        height: auto !important;
        object-fit: contain;
        display: block !important;
    }
    
    .mobile-menu-logo {
        font-size: 18px;
        font-weight: 700;
        color: var(--mobile-main-color, #2563eb);
    }
    
    .mobile-menu-logo img {
        max-width: none !important;
        width: auto !important;
    }
}

.main-nav {
    margin-left: auto;
    position: relative;
    z-index: 10000;
}

.nav-list {
    list-style: none;
    display: flex;
    position: relative;
    z-index: 10000;
}

.nav-item {
    position: relative;
    z-index: 10000;
}

.nav-link {
    display: flex;
    padding: 24px 26px;
    color: #333;
    text-decoration: none;
    font-weight: 700 !important;
    font-size: 19px;
}

.nav-item:hover {
    background: rgba(74, 123, 167, 0.05);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 99999;
    list-style: none;
    border-top: 3px solid #4a7ba7;
}

.nav-item:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu-item {
    position: relative;
}

.sub-menu-item i {
    font-size: 13px !important;
    color: #999;
    margin-top: 6px;
}

.sub-menu-link {
    display: flex;
    justify-content: space-between;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}

.sub-menu-link:hover {
    background: #f5f5f5;
    color: #4a7ba7;
}

.third-menu {
    position: absolute;
    top: 0;
    left: 100%;
    background: white;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s;
    list-style: none;
    border-top: 3px solid #4a7ba7;
    z-index: 999999;
}

.sub-menu-item:hover>.third-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.third-menu-link {
    display: block;
    padding: 6px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.third-menu-link:hover {
    background: #f5f5f5;
    color: #4a7ba7;
}

/* 모바일 헤더 스타일 */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    height: 60px;
}

.mobile-header .eng_link i {
    font-size: 20px;
    color: #444;
    margin-right: -12px;
}

.mobile-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    height: 100%;
    gap: 10px;
}

.mobile-logo {
    flex: 0 0 auto;
}

.mobile-logo img {
    height: 50px;
    margin-top: 6px;
}

.eng_link {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    flex: 0 0 auto;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 8px;
}

/* 사이드 메뉴 스타일 - 오른쪽에서 나오도록 변경 */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.open {
    right: 0;
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #cce1f5;
    color: #333;
}

.mobile-sidebar-logo img {
    height: 35px;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

/* 모바일 사이드바 로그인 영역 */
.mobile-user-actions {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.mobile-user-actions .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.mobile-user-actions .user-info i {
    font-size: 24px;
    color: #4a7ba7;
}

.mobile-user-actions .user-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.mobile-user-actions .user-role {
    font-size: 13px;
    color: #666;
}

.mobile-user-actions .action-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.mobile-user-actions .action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-user-actions .action-btn:hover {
    background: #4a7ba7;
    color: white;
    border-color: #4a7ba7;
}

.mobile-user-actions .action-btn i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.mobile-user-actions .action-btn.primary {
    background: #4a7ba7;
    color: white;
    border-color: #4a7ba7;
}

.mobile-user-actions .action-btn.primary:hover {
    background: #3d6688;
    border-color: #3d6688;
}

.mobile-sidebar-content {
    padding: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s;
}

.mobile-menu-link:hover {
    background: #f8f8f8;
    color: #4a7ba7;
}

.mobile-menu-link i {
    font-size: 14px;
    transition: transform 0.3s;
}

.mobile-menu-link.expanded i {
    transform: rotate(180deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.mobile-submenu.open {
    max-height: 500px;
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px 8px 40px;
    color: #666;
    border-bottom: #ddd solid 1px;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
}

.mobile-submenu-link:hover {
    background: #e9ecef;
    color: #4a7ba7;
}

.mobile-submenu-link i {
    font-size: 12px;
    transition: transform 0.3s;
}

.mobile-submenu-link.expanded i {
    transform: rotate(180deg);
}

.mobile-thirdmenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #e9ecef;
}

.mobile-thirdmenu.open {
    max-height: 300px;
}

.mobile-thirdmenu-link {
    display: block;
    padding: 8px 20px 8px 60px;
    color: #666;
    border-bottom: #ccc solid 1px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.mobile-thirdmenu-link:hover {
    background: #dee2e6;
    color: #4a7ba7;
}

/* 사이드 메뉴 오버레이 */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   Page Title & Submenu Styles
   ========================================= */
.page-title-area {
    background: linear-gradient(to right, #5b9bd5, #4a90c9);
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 9997;
}

.page-title-area h1 {
    color: white;
    font-size: 36px !important;
    font-weight: 500;
    padding: 12px 0 16px 0;
    margin: 0;
    z-index: 0 !important;
    letter-spacing: -0.5px;
}

.submenu-area {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 999;
}

.submenu-container {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submenu-left {
    display: flex;
    align-items: center;
    gap: 0;
    order: 1;
}

.home-btn {
    width: 60px;
    height: 48px;
    border: none;
    border-left: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s;
}

.home-btn:hover {
    color: #666;
}

.dropdown-menus {
    display: flex;
    gap: 0;
}

.dropdown-item {
    position: relative;
}

.dropdown-btn {
    padding: 0 25px 0 20px;
    border: none;
    border-right: 1px solid #d0d0d0;
    background: white;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 200px;
    height: 48px;
    text-align: left;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-family);
    font-weight: 500;
}

.dropdown-btn:hover {
    background: #f8f8f8;
}

.dropdown-btn i {
    font-size: 14px;
    color: #999;
}

.breadcrumb {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    order: 2;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #4a7ba7;
}

.breadcrumb .separator {
    color: #ccc;
    margin: 0 2px;
}

.breadcrumb .current {
    color: #4a7ba7;
}

/* =========================================
   Footer Styles
   ========================================= */
body.page-home .main-footer {
    margin-top: 0;
}

.main-footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 22px 0px;
    margin-top: 50px;
    width: 100%;
}

.site-footer {
    padding: 16px 0px;
    margin-top: 40px;
    background: #24346f;
}

.footer-container {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0px;
    width: 100%;
    color:#fff !important;
}

.footer-info {
    display: flex !important;
    gap: 6px;
    margin-bottom: 20px;
    margin-top: 10px;
    border-top: 1px solid #37467f;
    border-bottom: 1px solid #37467f;
}

.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    color: #c0c9ec;
    font-size: 15px !important;
}

.footer-links a:hover {
    color: #94a5e2;
}

.footer-links .b_bar {
    padding: 0 10px;
    font-size: 12px;
    color: #6378c4;
}

.footer-logo {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin: 4px 12px 0 0;
}

.footer-company-info {
    display: flex !important;
    gap: 12px;
}

.footer-company-info p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-company-info i {
    margin-right: 8px;
    color: #95a8ee;
}

.footer-bottom {
    text-align: left;
    padding-top: 0px;
    font-size: 15px;
}

.footer-bottom .copyright {
    color: #98a6da !important;
}

.footer-bottom a {
    color: #dbe3ff !important;
}

.footer-bottom a:hover {
    color: #91a0d8 !important;
}

.footer-link {
    width: 100%;
    display: inline-block;
    white-space: nowrap;
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    padding-bottom: 8px;
    border-bottom: #3b626a solid 1px;
}

.footer-link .bar {
    color: #7d898d !important;
    margin: 0px 8px;
    font-size: 12px;
    align-items: center;
}

.footer-link a {
    color: #fff;
    text-decoration: none;
}

.footer-link a:hover {
    color: #afeefc;
}

.footer-info b {
    color: #eee !important;
    margin-right: 12px;
    font-size: 16px;
    font-weight: 600;
}

.footer-info .bar {
    color: #7d898d !important;
    margin: 0px 8px;
    font-size: 12px;
    align-items: center;
}

.footer-copy {
    font-size: 13px !important;
    font-weight: 400;
    color: #95a5a6;
}

/* =========================================
   Mobile & Responsive Styles
   ========================================= */
.m_only {
    display: none !important;
}

/* PC/모바일 메뉴 표시 규칙 */
.desktop-menu {
    display: block;
}

.mobile-dropdown {
    display: none;
}

@media (max-width: 768px) {

    .top-bar,
    .main-header {
        display: none;
    }

    .mobile-header {
        display: block;
        position: fixed !important;
    }

    .desktop-menu {
        display: none;
    }

    .mobile-dropdown {
        display: block;
    }

    /* 모바일에서 커뮤니티 메뉴 완전 숨김 */
    .dropdown-item:first-child {
        display: none !important;
    }

    .submenu-left {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
    }

    .dropdown-menus {
        flex: 1 !important;
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .page-title-area {
        margin-top: 60px !important;
        padding: 6px 0;
        z-index: 0;
    }

    .page-title-area h1 {
        font-size: 32px;
    }

    .submenu-container {
        padding: 0px 12px;
        overflow-x: auto;
    }

    .breadcrumb {
        display: none !important;
    }

    .home-btn {
        width: 60px;
        height: 48px;
        border: none;
        border-left: 1px solid #d0d0d0;
        border-right: 1px solid #d0d0d0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
        font-size: 18px;
        text-decoration: none;
        transition: all 0.2s;
    }

    .home-btn:hover {
        color: #666;
    }

    .dropdown-btn {
        width: 100%;
        min-width: 200px;
        border-radius: 4px;
        border-right: 1px solid #d0d0d0;
    }

    /* 모바일 전역 좌우 여백 12px 및 풀폭 규칙 */
    .main-container,
    .container,
    body.page-home .main-container,
    body:not(.page-home) .main-container,
    body:not(.page-home) .container,
    body:not(.page-home) * .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .page-title-area {
        padding-left: 12px;
        padding-right: 12px;
    }

    .submenu-area {
        padding-left: 0;
        padding-right: 0;
    }

    .m_only {
        display: block !important;
        margin: -2px 0 -8px 0;
        padding: 0px;
    }

    .footer-container {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
        padding: 0px 12px;
    }

    .footer-link {
        width: 100%;
        text-align: center;
        color: #fff;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
        padding-bottom: 8px;
        margin-bottom: 8px;
        border-bottom: #3b626a solid 1px;
    }

    .footer-info {
        display: block;
        white-space: wrap;
        text-align: center;
        color: #b6bfc1;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
    }

    .footer-info b {
        color: #eee !important;
        font-size: 16px !important;
        font-weight: 600;
    }

    .footer-company-info {
        display: block !important;
    }
}

/* =========================================
   Quick Menu Section - 100% Width
   ========================================= */
.quick-menu-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.quick-menu-section .container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================
   TinyMCE Editor UI 스타일 개선
   ========================================= */

/* TinyMCE 툴바 및 UI 요소의 경계선을 더 선명하게 */
.tox .tox-toolbar,
.tox .tox-toolbar__group,
.tox .tox-toolbar__overflow,
.tox .tox-menubar,
.tox .tox-statusbar {
    border-color: #ddd !important;
    border-width: 1px !important;
}

/* 툴바 그룹 구분선 */
.tox .tox-toolbar__group {
    border-right: 1px solid #ddd !important;
    border-top:#ddd solid 1px !important;
}

/* 에디터 영역 테두리 */
.tox .tox-edit-area {
    border: 1px solid #ddd !important;
}

.tox .tox-edit-area__iframe {
    border: none !important;
}

/* 메뉴바 구분선 */
.tox .tox-menubar {
    border-bottom: 1px solid #ddd !important;
}

/* 상태바 구분선 */
.tox .tox-statusbar {
    border-top: 1px solid #ddd !important;
}

/* 버튼 경계선 */
.tox .tox-button,
.tox .tox-tbtn,
.tox .tox-split-button {
    border-color: #ddd !important;
}

.tox .tox-button:hover,
.tox .tox-tbtn:hover {
    border-color: #bbb !important;
}

/* 드롭다운 메뉴 경계선 */
.tox .tox-menu,
.tox .tox-collection,
.tox .tox-collection__item {
    border-color: #ddd !important;
}

/* 모달 다이얼로그 경계선 */
.tox .tox-dialog,
.tox .tox-dialog__header,
.tox .tox-dialog__body,
.tox .tox-dialog__footer {
    border-color: #ddd !important;
}

.tox .tox-dialog__header {
    border-bottom: 1px solid #ddd !important;
}

.tox .tox-dialog__footer {
    border-top: 1px solid #ddd !important;
}

/* 탭 경계선 */
.tox .tox-tab {
    border-color: #ddd !important;
}

.tox .tox-tab--active {
    border-bottom-color: transparent !important;
}

/* 입력 필드 경계선 */
.tox .tox-textfield,
.tox .tox-listboxfield .tox-listbox--select,
.tox .tox-form__controls-h-stack input,
.tox .tox-form__controls-h-stack select {
    border: 1px solid #ddd !important;
}

.tox .tox-textfield:focus,
.tox .tox-listboxfield .tox-listbox--select:focus {
    border-color: #4a7ba7 !important;
    outline: none !important;
}

/* 체크박스 및 라디오 버튼 */
.tox .tox-checkbox__icons,
.tox .tox-radio__icons {
    border: 1px solid #ddd !important;
}

/* 퀵바 경계선 */
.tox .tox-quickbar {
    border: 1px solid #ddd !important;
}

/* 컨텍스트 메뉴 경계선 */
.tox .tox-collection--list {
    border: 1px solid #ddd !important;
}

/* 툴팁 경계선 */
.tox .tox-tooltip {
    border: 1px solid #ddd !important;
}

/* 사이드바 경계선 */
.tox .tox-sidebar {
    border-color: #ddd !important;
}

/* 에디터 전체 컨테이너 */
.tox.tox-tinymce {
    border: 1px solid #ddd !important;
}

/* 툴바 스티키 모드일 때 구분선 */
.tox .tox-toolbar--scrolling {
    border-bottom: 1px solid #ddd !important;
}

/* 이미지 다이얼로그 내부 요소 */
.tox .tox-form__group {
    border-color: #ddd !important;
}

/* 업로드 영역 경계선 */
.tox .tox-dropzone {
    border: 2px dashed #ddd !important;
}

.tox .tox-dropzone.drag-over {
    border-color: #4a7ba7 !important;
}