/* 루트 폰트 사이즈 설정 */
html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
}
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}



body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #222;
    font-size: 14px;
}

/* 목록으로 돌아가기 버튼 */
.detail-header-wrapper {
    margin:0 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

.back-list-btn {
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color:#333;
}

@media (max-width: 1060px) {
    .detail-header-wrapper {
        margin:0 0 1rem;
    }
}

/* 공통 카드 스타일 */

.card-item {
    width: 100%;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.card-item:hover {
    text-decoration: none;
    color: inherit;
}

.slider-section.advertising .card-item:hover .card-img img,
.slider-section.tools .card-item:hover .card-img img {
    transform: scale(1.1);
}

/* 슬라이더 버튼 */
@media (max-width: 1060px) {
    .slider-btn {
        display: none;
    }
}


.card-item .card-img {
    position: relative;
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: #eee;
    flex-shrink: 0;
    pointer-events: none;
}

.card-item .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.card-item .card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(179.64deg, rgba(0, 0, 0, 0) 0.81%, rgba(0, 0, 0, 0.35) 99.69%);
    z-index: 1;
    pointer-events: none;
}

.card-item .card-location {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background-color: transparent;
    color: #ffffff;
    padding: 0;
    border-radius: 0;
    font-size: 0.875rem;
    z-index: 2;
    backdrop-filter: none;
}

.card-item .card-location i {
    font-size: 0.875rem;
}

.card-item .card-location span {
    font-size: 0.875rem;
    white-space: nowrap;
    font-weight: 500;
}

.card-item .card-content {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 0.75rem 0.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #111;
    background: #ffffff;
    pointer-events: none;
}

.card-item .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.card-item .card-company {
    font-size: 0.875rem;
    font-weight: 400;
    color: #666;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-item {
    text-decoration: none;
    color: inherit;
}

.card-item:hover {
    text-decoration: none;
    color: inherit;
}

/* 카드 그리드 레이아웃 */
.card-grid-container {
    max-width: 1060px;
    margin: 0 auto;
    box-sizing: border-box;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    row-gap: 3rem;
    width: 100%;
    /* padding: 5rem 0; */
}

@media (max-width: 1060px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
}


@media (max-width: 468px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap:8px;
    }
}



/* 검색 바 */


.search-bar-container {
    width:100%;
    box-sizing: border-box;
}



.search-bar {
    max-width: 1060px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    gap: 0.5rem;
}




.page-search-bar .search-field .location-dropdown{
    width:10rem;
}
.page-search-bar .search-field .sort-dropdown{
    width:7rem;
}

/* page-search-actions*/
.page-search-actions .dropdown-display{
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-sizing: border-box;
}
.page-search-actions .location-dropdown .dropdown-display{
    width:10rem;
}
.page-search-actions .work-type-dropdown .dropdown-display{
    width:10rem;
}
.page-search-actions .sort-dropdown .dropdown-display{
    width:7rem;
}


.page-search-bar .search-field .search-input-wrapper {
    width:420px;
}


.search-label {
    font-size: 0.8125rem;
    color: #999;
    font-weight: 400;
    margin: 0;
    height: 1.25rem;
    display: flex;
    align-items: center;
}



.search-input {
    width: 100%;
    padding: 0.5rem 2rem 0 0;
    border: none;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 400;
    color: #111;
    background: #fff;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
}

.search-btn {
    padding: 0.675rem 1.25rem;
    background-color: #4169E1;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    display: flex;
    gap:0.5rem;
    align-items: center;
    justify-content: center;
}

.search-btn.outline {
    background-color: #ffffff;
    color: #4169E1;
    border: 1px solid #4169E1;
}

.page-container {
    padding: 106px 0 5rem;
    box-sizing: border-box;
}

.page-layout {
    max-width: 1060px;
    margin: 0 auto;
}

.page-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 0.5rem;
}

.page-title {
    font-size: 1.375rem;
    margin: 0;
}

/* 페이지 타이틀 옆 글쓰기 아이콘 버튼 (태블릿/모바일용) */
.page-title-write-btn {
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #4169E1;
    text-decoration: none;
    font-size: 0.875rem;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    padding:4px;
    
}



.page-description {
    font-size: 0.875rem;
    color: #777;
    margin: 0.5rem 0 2rem;
    word-break: keep-all;
}

.page-search-wrapper {
    max-width: 1060px;
    margin: 0 auto 1.375rem;
    display: flex;
    align-items: center;
    gap: 20px;    
    justify-content: space-between;
    flex-wrap: nowrap;
}

.page-search-wrapper .table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}



/* 이용후기 페이지 - space-between 적용 */
.page-search-wrapper.review-search-wrapper {
    justify-content: space-between;
}

.page-search-bar.search-bar-container {
    width: auto;
    z-index: 99;
    background-color: #ffffff;
}

.page-search-bar.search-bar-container .search-bar-wrapper {
    width: 100%;
}

.page-search-bar.search-bar-container .search-bar {
    width: 100%;
}

.page-total-count {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}

/* 페이지 검색 액션 영역 (오른쪽 필터들) */
.page-search-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
    width: auto;
}

.page-search-actions .search-field {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.page-search-actions .search-field .custom-dropdown {
    flex-shrink: 0;
}

/* PC/태블릿용 검색 인풋 필드 */
.search-input-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #fff;
    padding: 0.5rem;
    flex: 1;
    width:300px;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
}

.search-input-field input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.875rem;
    color: #333;
    background: transparent;
    padding-right: 0.25rem;
}

.search-input-field input::placeholder {
    color: #999;
}

.search-input-field .search-icon {
    font-size: 1rem;
    color: #666;
    flex-shrink: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-input-field .search-icon:hover {
    color: #4169e1;
}

/* 검색 아이콘 버튼 (모바일용) */
.search-icon-btn {
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: #fff;
    color: #666;
    cursor: pointer;
    flex-shrink: 0;
    box-sizing: border-box;
    margin: 0 4px;
    border: none;
}




/* 검색 팝업 */
.search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.search-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.search-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
}

.search-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.search-popup-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
}

.search-popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.search-popup-close:hover {
    background-color: #f3f4f6;
    color: #333;
}

.search-popup-close i {
    font-size: 1.25rem;
}

.search-popup-body {
    padding: 1.25rem;
}

.search-popup-body .search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.search-popup-input-container {
    position: relative;
    flex: 1;
}

.search-popup-body .search-input-wrapper input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    box-sizing: border-box;
}

.search-popup-body .search-input-wrapper input:focus {
    outline: none;
}

.search-popup-clear-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    z-index: 1;
}

.search-popup-clear-btn:hover {
    color: #333;
}

.search-popup-clear-btn i {
    font-size: 0.875rem;
}

.search-popup-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    background-color: #4169e1;
    color: #fff;
    border-radius: 0.5rem;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.search-popup-submit-btn:hover {
    background-color: #3151c7;
}


.article-content-wrapper img,
.detail-content img{
    width: 600px;
    height: auto;
}

@media (max-width: 468px) {
    .article-content-wrapper img,
    .detail-content img{
        width: 100%;
    }
}
@media (max-width: 1060px) {
    .page-container {
        padding:80px 20px;
    }
    .page-title-wrapper {
        margin: 0 0 0.5rem;
    }
    .page-title {
        margin: 0;
    }
    
    /* 태블릿/모바일에서 페이지 타이틀 옆 글쓰기 버튼 표시 */
    .page-title-write-btn {
        display: flex;
    }
    
    /* 태블릿/모바일에서 하단 글쓰기 버튼 숨기기 */
    .write-btn-container {
        display: none;
    }
    .page-container.detail-page {
        min-height: calc(100vh - 340px);
    }
    .article-content-wrapper{
        min-height: auto;
    }
    
    .page-description {
        font-size: 0.875rem;
        margin: 0.5rem auto 1rem;
    }
    
    .page-search-wrapper {
        justify-content: space-between;
        gap: 10px;
        margin:0 0 12px;
        flex-wrap: nowrap;
        align-items: center;
    }
    .page-search-actions .filter-reset-btn{
        border:none;
    }
    .page-search-bar .search-field .location-dropdown,
    .page-search-bar .search-field .sort-dropdown,
    .page-search-bar .search-field .search-input-wrapper{
        width:100%;
    }

    .page-total-count {
        flex-shrink: 0;
        white-space: nowrap;
        text-align: right;
        margin-bottom: 0;
        font-size: 0.875rem;
    }
    
    .page-search-wrapper .table-actions {
        flex-wrap: nowrap;
        flex-shrink: 0;
    }
}


@media (max-width: 468px) {
    .page-container {
        padding:80px 15px 40px;
    }
    .page-container.detail-page {
        min-height: calc(100vh - 420px);
    }
    .page-search-wrapper {
        margin-bottom: 4px;
    }
    .page-search-actions .location-dropdown .dropdown-display,
    .page-search-actions .sort-dropdown .dropdown-display,
    .page-search-actions .work-type-dropdown .dropdown-display{
        border: none;
    }
    .page-search-actions .location-dropdown .dropdown-display{
        width:120px;
    }
    
    .page-search-actions .sort-dropdown .dropdown-display{
        width:80px;
    }
}



.page-search-bar .search-field {
    border-right: none;
}


.page-search-bar.search-bar-container .dropdown-display{
    padding:0;
}
.page-search-bar.search-bar-container .custom-dropdown{
    padding:0.675rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

.page-search-bar.search-bar-container .custom-dropdown.active{
    border:1px solid #4169E1;
}
.page-search-bar .dropdown-text{
    font-size: 0.875rem;
    font-weight: 400;
}
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: #ffffff;
    padding: 0.675rem 0.75rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;

}

.search-input-wrapper:focus-within {
    border-color: #4169e1;
}

.search-icon {
    font-size: 1rem;
    color: #666;
    margin-left: 0.5rem;
    flex-shrink: 0;
    order: 3;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.875rem;
    color: #111;
    background: transparent;
    padding: 0;
    margin: 0;
    height: 100%;
    
}

.search-input-wrapper input::placeholder {
    color: #999;
}

.search-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border: none;
    border-radius: 50%;
    color: #ccc;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 0.5rem;
    padding: 0;
    transition: background-color 0.2s ease;
    order: 2;
}



.search-clear-btn i {
    font-size: 1rem;
    font-weight: bold;
}


@media (max-width: 1060px) {
    .page-search-bar.search-bar-container{
        margin:0;
    }
    
    .search-bar {
        width:100%;
        max-width: 100%;
        box-sizing: border-box;
        align-items: stretch;
        gap: 16px;
    }
    .page-search-bar .search-bar{
        gap: 0px;
    }

    .search-field {
        width: 100%;
        border-right: none;
        padding: 0;
        gap: 8px;
        margin-bottom: 8px;
    }

    .search-clear-btn {
        width: 1rem;
        height: 1rem;
    }
    
    .search-clear-btn i {
        font-size: 0.75rem;
    }
    .search-btn {
        display: block;
        width:100%;
        margin-top: 4px;
    }
}
@media (max-width: 768px) { 
    .page-search-bar {
        margin-bottom: 1.5rem;
    }
    
    .search-input-wrapper {
        padding: 0.625rem 0.5rem;
    }
    
    .search-icon {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    .search-input-wrapper input {
        font-size: 0.875rem;
    }
    
    
}



/* 결과 없을 때 스타일 */
.no-data {
    text-align: center;
    padding: 7rem 0 1rem;
    font-size: 0.875rem;
    color: #999;
}

.common-table td.no-data {
    padding: 5rem 0;
}

.common-table td.no-data:hover {
    cursor: default;
    background-color: #fff;
}



@media (max-width: 1060px) {
    .common-board .no-data {
        display: block;
    }
}

.no-comment-data {
    text-align: center;
    padding: 3rem 0;
    font-size: 0.875rem;
    color: #999;
}


/* 커스텀 드롭다운 */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-display {
    width: 100%;
    padding: 0.5rem 0 0 0;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #111;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    user-select: none;
    transition: none;
    z-index: 10;
}

.dropdown-display:focus,
.custom-dropdown.active .dropdown-display {
    outline: none;
}

.dropdown-icon {
    font-size: 0.875rem;
    color: #666;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.dropdown-text {
    flex: 1;
}

.dropdown-arrow {
    font-size: 0.75rem;
    color: #333;
    transition: transform 0.2s ease;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.custom-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    pointer-events: none;
}

.custom-dropdown.active .dropdown-options {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
    pointer-events: auto;
}

.dropdown-option {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 400;
    color: #111;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.dropdown-option:hover {
    background-color: #f5f5f5;
}

.dropdown-option.selected {
    background-color: rgba(65, 105, 225, 0.1);
    color: #4169E1;
}

.dropdown-option-count {
    color: #666;
    font-size: 0.75rem;
    font-weight: 400;
    margin-left: 4px;
}

.dropdown-option:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.dropdown-option:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

/* 스크롤 탑 버튼 */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #fff;
    color: #4169E1;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}



.scroll-top-btn:active {
    background-color: #fff;
    color: #4169E1;}

.scroll-top-btn i {
    font-size: 1rem;
}

.scroll-top-btn {
    display: none;
}
@media (max-width: 1060px) {
    .scroll-top-btn {
        display: flex;
    }
}

/* PC에서는 숨김 */
@media (min-width: 1061px) {
    .scroll-top-btn {
        display: none !important;
    }
}

/* 필터 초기화 버튼 */
.filter-reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.filter-reset-btn:hover {
    background-color: #f3f4f6;
    border-color: #4169e1;
    color: #4169e1;
}

.filter-reset-btn i {
    font-size: 1rem;
}

/* 반응형 (태블릿/모바일 화면용) */
@media (max-width: 1060px) {

    .page-search-actions .search-field {
        width: auto;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .page-search-actions .search-field .custom-dropdown {
        flex-shrink: 0;
    }
    
    .filter-reset-btn {
        flex-shrink: 0;
        margin-left: 0;
        border:none;
        width: auto;
    }
    
    .search-popup-content {
        width: 95%;
        max-width: 400px;
    }
}

/* 모바일 전용 (480px 이하) */
@media (max-width: 480px) {
    /* 모바일에서 검색 인풋 필드 숨기기 */
    .search-input-field {
        display: none;
    }
    
    /* 모바일에서 검색 아이콘 버튼 표시 */
    .search-icon-btn {
        display: flex;
    }
}

/* ============================================
   공통 테이블 스타일 (이용후기, 공지사항, 커뮤니티 공통)
   ============================================ */

/* 공통 테이블 컨테이너 */
.common-table-container {
    width: 100%;
}

/* 공통 테이블 스타일 */
.common-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
    background: #fff;
    color: #333;
}

.common-table thead {
    border-top: 1px solid #999;
    border-bottom: 1px solid #ccc;
}

.common-table thead th {
    font-weight: 600;
    padding: 12px;
}

.common-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
}

.common-table tbody tr:last-child {
    border-bottom: none;
}

.common-table tbody tr:hover {
    background-color: rgba(65, 105, 225, 0.05);
}

.common-table td {
    padding: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 번호 컬럼 */
.common-table .col-number {
    width: 40px;
    text-align: center;
}
.common-table td.col-number {
    color: #999;
}
/* 제목 컬럼 */
.common-table .col-title {
    width: auto;
    color: #333;
}

.common-table th.col-title {
    text-align: center;
}

.common-table td.col-title {
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: left;
    overflow: hidden;
}

.common-table td.col-title .company-tag,
.common-table td.col-title .title-tag {
    flex-shrink: 0;
}

.common-table td.col-title .new-badge {
    flex-shrink: 0;
}

.common-table td.col-title .comment-icon {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #999;
    font-size: 12px;
    margin-left: 4px;
    flex-shrink: 0;
}

.common-table td.col-title .comment-icon i {
    font-size: 14px;
}

/* 읽지않음 라벨 스타일 */
.common-table td.col-title .unread-label {
    display: inline-block;
    font-size: 11px;
    color: #999;
    vertical-align: middle;
}


/* 작성자 컬럼 */
.common-table .col-author {
    width: 60px;
    text-align: left;
}

/* 작성일 컬럼 */
.common-table .col-date {
    width: 110px;
    text-align: center;
}
.common-table td.col-date {
    color: #999;
}
/* 수정일 컬럼 */
.common-table .col-updated {
    width: 110px;
    text-align: center;
}
.common-table td.col-updated {
    color: #999;
}
/* 조회 컬럼 */
.common-table .col-views {
    width: 50px;
    text-align: center;
}
.common-table td.col-views {
    color: #999;
}

/* NEW 배지 */
.new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    font-size: 8px;
    width: 14px;
    height: 14px;
    color: #fff;
    background: #e74c3c;
    border-radius: 5px;
    vertical-align: middle;
}

/* 테이블 하단 푸터 */
.common-table-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
    position: relative;
}

.common-table-footer .alltable-pagination {
    margin: 0;
}

/* 글쓰기 버튼 컨테이너 */
.write-btn-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
    position: absolute;
    right: 0;
}

/* 글 작성하기 버튼 */
.write-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    color: #4169e1;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.write-btn:hover {
    background-color: #3151c7;
    transform: translateY(-1px);
    color: #fff;
}

.write-btn i {
    font-size: 1rem;
}


/* 보드 리스트 스타일 (모바일/태블릿용) */
.common-board {
    display: none;
}
#inquiry-board .common-board-item,
#message-board .common-board-item {
    padding: 16px 40px 16px 16px;
}

.common-board-item {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.common-board-item:first-child {
    border-top: 1px solid #e5e7eb;
}

.common-board-item:last-child {
    border-bottom: none;
}

.common-board-item:hover {
    background-color: rgba(65, 105, 225, 0.05);
}

.common-board-item-title {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
    word-break: break-word;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.common-board-item-title .title-tag,
.common-board-item-title .company-tag {
    flex-shrink: 0;
}

.common-board-item-title .comment-icon {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #999;
    font-size: 12px;
    margin-left: 4px;
    flex-shrink: 0;
}

.common-board-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.common-board-item-author {
    font-weight: 500;
}

.common-board-item-time {
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.common-board-item-meta .common-board-item-time:first-child {
    color: #666;
}

.common-board-item-time .new-badge-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e74c3c;
    color: #fff;
    font-size: 8px;
    font-weight: bold;
    flex-shrink: 0;
}

.common-board-item-views {
    color: #999;
}

.new-badge-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    flex-shrink: 0;
}

.common-board .no-data {
    display: none;
}

/* 반응형 (태블릿 화면용) */
@media (max-width: 1060px) {
    .common-table-container .no-data {
        display: none;
    }

    .common-board .no-data {
        display: block;
    }
    .common-table th,
    .common-table td {
        font-size: 13px;
        padding: 10px 8px;
    }
    
    .common-table .col-number {
        width: 35px;
    }
    
    .common-table .col-author {
        width: 55px;
    }
    
    .common-table .col-date {
        width: 100px;
    }
    
    .common-table .col-views {
        width: 45px;
    }
    
    .common-table-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        position: relative;
    }
    
    .write-btn-container {
        display: none !important;
    }
    
    .common-table-footer .alltable-pagination {
        width: 100%;
        justify-content: center;
    }
    
    /* 모바일에서는 테이블 숨기고 보드 표시 */
    .common-table {
        display: none;
    }
    
    .common-board {
        display: block;
    }
}

/* 반응형 (작은 모바일 화면용) */
@media (max-width: 480px) {
    .common-table {
        min-width: 600px;
        font-size: 11px;
    }
    
    .common-table th,
    .common-table td {
        font-size: 10px;
        padding: 6px 4px;
    }
}

/* 글쓰기 페이지 스타일 */
.common-create-wrapper {
    width:100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 20px;
    margin-top: 1rem;
    box-sizing: border-box;
}

/* 제목 인풋 - 필터 검색 인풋과 동일한 스타일, 너비 100% */
.create-title-input {
    width: 100%;
    padding: 0.675rem 0.75rem;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.125rem;
    font-weight: 400;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    margin-bottom: 1rem;
}

.create-title-input:focus {
    outline: none;
    border-color: #4169e1;
}

.create-title-input::placeholder {
    color: #999;
}

/* 이용업체 선택 영역 wrapper */
.company-region-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* 이용업체 드롭다운 - 지역 셀렉트와 동일한 스타일 (로케이션 아이콘 제외), 너비 50% */
.company-region-wrapper .custom-dropdown {
    width: 50%;
    padding: 0.675rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.company-region-wrapper .custom-dropdown.active {
    border-color: #4169e1;
}

.company-region-wrapper .custom-dropdown .dropdown-display {
    padding: 0;
}

.company-region-wrapper .custom-dropdown .dropdown-text {
    font-size: 0.875rem;
    font-weight: 400;
}

/* 이용업체 텍스트 인풋 - 필터 검색 인풋과 동일한 스타일, 너비 50% */
.create-region-input {
    width: 50%;
    padding: 0.675rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #111;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.create-region-input:focus {
    outline: none;
    border-color: #4169e1;
}

.create-region-input::placeholder {
    color: #999;
}

/* 받는사람 선택 영역 */
.create-receiver-wrapper {
    margin-bottom: 1rem;
}

.receiver-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.receiver-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    cursor: pointer;
}

.receiver-checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

.receiver-select {
    width: 100%;
    padding: 0.675rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #111;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.receiver-select:focus {
    outline: none;
    border-color: #4169e1;
}

.receiver-display {
    padding: 0.675rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #f9fafb;
    font-size: 0.875rem;
    color: #666;
}

.receiver-name {
    font-weight: 500;
}

/* 문의 종류 선택 영역 */
.create-inquiry-type-wrapper {
    margin-bottom: 1rem;
}

.inquiry-type-select {
    width: 100%;
    padding: 0.675rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #111;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.inquiry-type-select:focus {
    outline: none;
    border-color: #4169e1;
}

/* 내용 입력 textarea */
.create-content-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #111;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    resize: vertical;
    min-height: 200px;
    font-family: inherit;
    line-height: 1.5;
}

.create-content-textarea:focus {
    outline: none;
    border-color: #4169e1;
}

.create-content-textarea:read-only {
    background: #f9fafb;
    cursor: default;
}

.create-content-textarea::placeholder {
    color: #999;
}

.common-create-wrapper .ql-toolbar{
    border:1px solid #e5e7eb !important;
    border-bottom: none !important;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 0.5rem;
}

.common-create-wrapper .ql-container{
    border:1px solid #e5e7eb !important;
}
.common-create-wrapper .ql-editor.ql-blank::before{
    font-size: 0.875rem;
    font-style: normal !important;
}

.create-form-actions{
    display: flex;
    justify-content: end;
    align-items: center;
    margin-top: 1rem;
    gap: 8px;
}


.create-form-actions button[type="submit"],
.cancel-btn  {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background-color: #fff;
    
}
.create-form-actions button[type="submit"]{
    background-color: #4169E1;
    color: #fff;
}

.create-form-actions button[type="submit"]:hover{
    background:#3151b8;
}
.cancel-btn{
    background-color: #e5e7eb;
    color: #333;
    text-decoration: none;
}

@media (max-width: 1060px) {
    .common-create-wrapper{
        margin:0;
    }
}
@media (max-width: 480px) {
    .common-create-wrapper {
        padding: 0;
        border:none;
    }
}

.ql-toolbar.ql-snow .ql-formats{
    margin-right: 8px !important;
}