@charset "UTF-8";

/* ==========================================================================
   AX공급기업 검색 고도화 (사용자화면) 
   2026.06
   ========================================================================== */

/* 추가 스타일 보완 */
.filter-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 28px 20px 26px;
    margin-bottom: 25px;
}
.filter-row {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    column-gap: 0;
    padding: 0 0 16px;
    border-bottom: 1px dashed #e2e8f0;
}
.filter-row + .filter-row {
    padding-top: 12px;
}
.filter-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.filter-label {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: auto;
    min-height: 30px;
    font-weight: 700;
    color: #334155;
    font-size: 14px;
    text-align: center;
}
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}
.filter-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.filter-tag:hover {
    background: #e2e8f0;
}
.filter-tag.active {
    background: #3b82f6;
    color: #fff;
    border-color: #2563eb;
}

/* mList4.type2 디자인과 매치 */
.mList4.type2.ax-list ul {
    display: flex;
    flex-wrap: wrap;
    margin-left: 0;
    padding: 0;
    gap: 20px 24px;
}
.mList4.type2.ax-list ul li {
    width: calc(50% - 12px);
    margin: 0;
    float: none;
    box-sizing: border-box;
    background: #fff;
}
/* hover 효과 */
.mList4.type2.ax-list ul li:hover {
    box-shadow: 5px 5px 5px rgba(0,0,0,0.1);
    border-color: #0050a1;
}
/* 임시 이미지 박스 내 글자 배치 스타일링 */
.mList4.type2.ax-list ul li .map.img-box {
    display: flex;
    align-items: center;
    justify-content: center;
    float: left;
    width: 234px;
    height: 154px;
    padding: 20px 0;
    box-sizing: border-box;
    overflow: hidden;
    font-size: 48px;
    font-weight: 800;
}
.mList4.type2.ax-list ul li .map.img-box img {
    display: block;
    width: 80%;
    height: 100%;
    object-fit: contain;
}
.mList4.type2.ax-list ul li .map.img-box img[src*="noimage"] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mList4.type2.ax-list ul li .map.img-box:has(img[src*="noimage"]) {
    padding: 0;
}
/* 카드 내부 영역 플로팅 해제 및 최소 높이 설정 */
.mList4.type2.ax-list ul li .txt {
    overflow: hidden;
    min-height: 198px;
    box-sizing: content-box;
}
.mList4.type2.ax-list ul li .info-container {
    margin-left: 264px !important;
}
.mList4.type2.ax-list ul li .info-container > div {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: start;
}
.mList4.type2.ax-list ul li .info-container > div > span:first-child {
    width: 70px !important;
}
.mList4.type2.ax-list ul li .info-container > div > span:not(:first-child),
.mList4.type2.ax-list ul li .info-container > div > strong.name,
.mList4.type2.ax-list ul li .info-container > div > .tags {
    display: block;
    min-width: 0;
}

.mList4.type2.ax-list ul li .info-container > div > .address-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mList4.type2.ax-list ul li .info-container > div > .tags.product-value {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.5;
    max-height: 6em;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}
/* 주요업종 태그 디자인 정의 */
.mList4.type2.ax-list ul li .mTag2 span {
    background-color: #fff;
    color: #ff6d6d;
    border: 1px solid #ff6d6d;
    border-radius: 22px;
    font-size: 12px;
    padding: 3px 12px;
    margin-right: 6px;
    margin-bottom: 6px;
    line-height: normal;
    height: auto;
    display: inline-block;
}

/* 모바일 반응형 대응 (768px 이하) */
@media all and (max-width: 768px) {
    /* 필터 섹션 모바일 정렬 */
    .filter-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    .filter-row {
        display: block;
        padding: 8px 0;
    }
    .filter-label {
        display: block;
        width: 100%;
        min-height: 0;
        font-size: 13px;
        margin-bottom: 8px;
    }
    .filter-tags {
        gap: 6px;
    }
    .filter-tag {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    /* 리스트 카드를 1열로 늘리고 세로형 레이아웃으로 전환 */
    .mList4.type2.ax-list ul li {
        width: 100% !important;
    }
    .mList4.type2.ax-list ul li .txt {
        min-height: auto !important;
        padding: 20px 20px 15px 20px !important;
    }
    .mList4.type2.ax-list ul li .map.img-box {
        float: none !important;
        width: 100% !important;
        height: 130px !important;
        margin: 0 0 15px 0 !important;
        padding: 20px 0;
        border-radius: 6px;
    }
    .mList4.type2.ax-list ul li .map.img-box img {
        width: 80%;
        height: 100%;
    }
    .mList4.type2.ax-list ul li .map.img-box img[src*="noimage"] {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }
    .mList4.type2.ax-list ul li .map.img-box:has(img[src*="noimage"]) {
        padding: 0;
    }
    .mList4.type2.ax-list ul li .info-container {
        margin-left: 0 !important;
        padding-top: 0 !important;
    }
    .mList4.type2.ax-list ul li .info-container > div {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }
    .mList4.type2.ax-list ul li .info-container > div strong.name {
        font-size: 15px !important;
    }
    .mList4.type2.ax-list ul li .mTag2 {
        margin: 0 0 12px 0 !important;
    }
    
    /* 하단 전문분야 바 모바일 패딩 조정 */
    .mList4.type2.ax-list ul li .tit {
        padding: 12px 20px !important;
    }
    .mList4.type2.ax-list ul li .tit span {
        font-size: 12px !important;
        line-height: 1.6;
    }
}

.mList4.type2.ax-list > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 24px;
    margin-left: 0;
    padding: 0;
}
.mList4.type2.ax-list > ul > li.company-item {
    float: none;
    width: calc(50% - 12px);
    margin: 0;
    box-sizing: border-box;
}
.mList4.type2.ax-list .hash-tag:before {
    content: "# ";
}
.mList4.type2.ax-list .hash-tag + .hash-tag {
    margin-left: 16px;
}
@media all and (max-width: 768px) {
    .mList4.type2.ax-list > ul > li.company-item {
        width: 100%;
    }
}

/* AX공급기업 데이터 없음 스타일 */
.mList4.type2.ax-list .no-data-item {
    width: 100%;
}

.mList4.type2.ax-list .no-data-item {
    border: none;
    background: none;
    box-shadow: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.no-data-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 60px 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin: 40px 0;
    width: 100%;
    box-sizing: border-box;
}

.no-data-message {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.no-data-message p {
    font-size: 22px;
    font-weight: 600;
    color: #495057;
    margin: 0 0 16px 0;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.no-data-message .sub-message {
    font-size: 16px;
    color: #868e96;
    display: block;
    margin-top: 12px;
    line-height: 1.4;
}

/* 반응형 처리 */
@media (max-width: 768px) {
    .no-data-content {
        min-height: 250px;
        padding: 50px 20px;
        margin: 30px 0;
    }

    .no-data-message p {
        font-size: 18px;
    }

    .no-data-message .sub-message {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .no-data-content {
        min-height: 200px;
        padding: 40px 15px;
        margin: 20px 0;
        border-radius: 8px;
    }

    .no-data-message p {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .no-data-message .sub-message {
        font-size: 13px;
    }
}

/* AX공급기업 검색 상세페이지 스타일 */
.mTab1 {
    margin-bottom: 25px;
}
.mTab1 ul {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    padding: 0;
    margin: 0;
    list-style: none;
}
.mTab1 ul li {
    flex: 1;
    text-align: center;
}
.mTab1 ul li a {
    display: block;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}
.mTab1 ul li.active a {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}
.activities-ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0;
}
.activities-ul li {
    margin-bottom: 6px;
    line-height: 1.6;
}

/* Company Large Logo Header Layout */
.company-detail-header {
    display: flex !important;
    align-items: center;
    gap: 25px;
    background-color: #fff;
    border: 1px solid #d2d4d7;
    border-radius: 6px;
    padding: 22px 30px;
}

.company-large-logo {
    width: 234px;
    height: 154px;
    padding: 20px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    font-weight: 800;
    /* background-color: #f1f5f9; */
    color: #3b82f6;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.company-large-logo img {
    display: block;
    width: 80% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
}

.company-large-logo img[src*="noimage"] {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
}

.company-large-logo:has(img[src*="noimage"]) {
    padding: 0;
}

.company-large-logo:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.ax-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ax-preview-item {
    max-width: 260px;
}

.ax-preview-item .im {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 170px;
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid #d2d4d7;
    border-radius: 6px;
    background-color: #fff;
}

.ax-preview-item .im img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ax-preview-item .iAtt1 {
    max-width: 100%;
}

.company-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.company-header-info .badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.company-header-info .tit {
    margin: 0;
}

.company-header-info .ti {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    display: block;
    margin-bottom: 8px !important;
}

.company-header-info .da {
    padding: 0 !important;
    color: #475569 !important;
    font-size: 14.7px;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
    .company-detail-header {
        flex-direction: column !important;
        align-items: stretch;
        padding: 20px !important;
        gap: 15px;
        margin-top: -25px; /* Adjusting margin for mobile header spacing */
    }
    .company-large-logo {
        width: 100%;
        height: 130px;
        padding: 20px 0;
        font-size: 48px;
    }
    .company-large-logo:has(img[src*="noimage"]) {
        padding: 0;
    }
    .ax-preview-item,
    .ax-preview-item .im {
        width: 100%;
        max-width: 100%;
    }
    .company-header-info {
        gap: 8px;
    }
    .company-header-info .ti {
        font-size: 20px !important;
    }
}
