@charset "UTF-8";

/* ==========================================================================
   기업 AX 수준진단 공통 스타일 (Step 1 ~ Step 3 공통)
   ========================================================================== */

.txt-cetner {
    text-align: center !important;
}

/* 진행 단계 헤더 (Step progress bar area) */
.step-header {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.step-info .num {
    font-size: 14px;
    font-weight: 700;
    color: #3b82f6;
}

.step-info .tit {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.step-bar {
    width: 250px;
    background: #e2e8f0;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.step-progress {
    background: #3b82f6;
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.step-text {
    font-size: 12px;
    color: #64748b;
    text-align: right;
    margin-top: 4px;
}

/* 상단 이동 탭 스타일 (mTab1) */
.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: 15px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    word-break: keep-all;
}

.mTab1 ul li a:hover {
    color: #3b82f6;
}

.mTab1 ul li.active a {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

@media (max-width: 768px) {
    .mTab1 ul {
        flex-wrap: wrap;
    }
    .mTab1 ul li {
        flex: 0 0 50%;
    }
    .mTab1 ul li a {
        padding: 10px 0;
        font-size: 13px;
    }
}

/* ==========================================================================
   Step 2: 종합진단 페이지 전용 스타일
   ========================================================================== */

/* 상위 소분류 탭 메뉴 */
.diag-sub-tabs {
    margin-bottom: 25px;
}

.diag-sub-tabs ul {
    display: flex;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    padding: 0;
    margin: 0;
    list-style: none;
    background: #f8fafc;
}

.diag-sub-tabs ul li {
    flex: 1;
    text-align: center;
    border-right: 1px solid #cbd5e1;
}

.diag-sub-tabs ul li:last-child {
    border-right: none;
}

.diag-sub-tabs ul li a {
    display: block;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.diag-sub-tabs ul li.active {
    background: #3b82f6;
}

.diag-sub-tabs ul li.active a {
    color: #fff;
}

/* 문항 블록 (Question container custom reset) */
.question-block {
    margin-bottom: 30px;
}

.question-block .mOne1 dl {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0 !important;
}

.question-block .mOne1 dl:before {
    display: none !important;
}

.question-block .mOne1 dd {
    margin-left: 0 !important;
    padding: 15px 20px !important;
    background-color: #fff !important;
    border-radius: 8px !important;
    border-top: none !important;
}

/* 문항 보기 목록 (Option List) */
.option-list {
    padding-left: 0;
    list-style: none;
    margin-top: 10px;
}

.option-item {
    margin-bottom: 8px;
    display: block;
}

.option-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #334155;
}

.option-item label:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.option-item.selected label {
    background: #eff6ff;
    border-color: #3b82f6;
    font-weight: 700;
    color: #1d4ed8;
}

.option-item input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* AX 현황 및 추진 계획 */
.ax-guide-text {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.ax-tech-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    table-layout: fixed;
}

.ax-tech-table th,
.ax-tech-table td {
    border: 1px solid #e2e8f0;
    padding: 12px 14px;
    vertical-align: top;
    word-break: keep-all;
}

.ax-tech-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    text-align: center;
}

.ax-tech-table td:first-child {
    text-align: center;
    font-weight: 700;
    color: #1e293b;
}

.dash-list {
    margin: 0;
    padding-left: 18px;
}

.dash-list li {
    margin-bottom: 5px;
    line-height: 1.5;
}

.demand-fieldset {
    border: 0;
    padding: 0;
    margin-bottom: 28px;
    min-inline-size: 0;
}

.demand-fieldset.disabled {
    opacity: 0.45;
}

.demand-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.demand-options.one-col {
    flex-direction: column;
}

.demand-options label,
.rank-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    word-break: keep-all;
}

.demand-options li {
    min-width: 220px;
}

.demand-options input[type="radio"],
.demand-options input[type="checkbox"] {
    flex: 0 0 auto;
}

.inline-other {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* flex-wrap: wrap; */
}

.inline-other input[type="text"] {
    max-width: 220px;
}

.rank-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rank-item {
    align-items: flex-start;
    flex-direction: column;
    font-weight: 700;
    flex: 1 1 180px;
}

.rank-item select {
    width: 100%;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.rank-item select option {
    font-size: 14px;
    font-weight: 400;
}

.rank-etc-input {
    display: none;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .demand-options,
    .rank-group {
        grid-template-columns: 1fr;
    }
    .ax-tech-table {
        display: block;
        overflow-x: auto;
    }
}


/* ==========================================================================
   Step 3: 도입현황/계획 페이지 전용 스타일
   ========================================================================== */

/* 도움말 아코디언 스타일 */
.mAccordion1 {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
}

.mAccordion1 .acc-title {
    background: #f1f5f9;
    padding: 15px 20px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.mAccordion1 .acc-content {
    display: none;
    padding: 20px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}

.mAccordion1 .acc-content.active {
    display: block;
}


/* ==========================================================================
   진단 결과 리포트 (ax-diagnostic-result.html) 전용 스타일
   ========================================================================== */

.result-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
}

.result-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3b82f6;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.result-table th,
.result-table td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    word-break: keep-all;
    vertical-align: middle;
}

.result-table th {
    background-color: #f8fafc;
    font-weight: 700;
    color: #334155;
    text-align: center;
}

.result-table tbody tr:hover {
    background-color: #f8fafc;
}

.score-highlight {
    font-weight: 800;
    color: #2563eb;
    font-size: 18px;
    text-align: center;
}

.result-table .score-highlight {
    text-align: center;
}

.result-table tbody tr td {
    text-align: justify;
}

/* 숫자 셀 중앙 정렬 */
.result-table tbody tr td.score-highlight,
.result-table tbody tr td.decimal-display,
.result-table tbody tr td[id^="detail"],
.result-table tbody tr td[id^="gap"],
.result-table tbody tr td[id="avgScore"],
.result-table tbody tr td[id="industryAvg"],
.result-table tbody tr td[id="industryTop"] {
    text-align: center !important;
}

/* 전사 AX 수준 테이블 배경색 */
.company-score-row {
    background-color: #eff6ff;
    width: 50%;
}

.industry-top-row {
    background-color: #fef2f2;
    width: 50%;
}

/* 상세 테이블 격차(Gap) 및 최종점수 관련 배경색 */
.score-red {
    background-color: #fef2f2;
    color: #ef4444;
    text-align: center;
    font-weight: 700;
}

.score-green {
    background-color: #ecfdf5;
    color: #10b981;
    text-align: center;
    font-weight: 700;
}

/* 점수바 그래픽 */
.score-bar-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.score-bar {
    display: flex;
    gap: 3px;
    justify-content: center;
}

.score-cell {
    width: 16px;
    height: 18px;
    border: 1px solid #cbd5e1;
    background-color: #fff;
    border-radius: 2px;
}

.score-cell.filled {
    background-color: #3b82f6;
    border-color: #2563eb;
}

/* 2열 레이아웃 (테이블 vs 방사형 차트) */
.two-column-layout {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    align-items: stretch;
}

.left-column {
    flex: 0 0 48%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.right-column .result-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.chart-container {
    position: relative;
    height: 100%;
    flex: 1;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 도움말 툴팁 */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: help;
    border-bottom: 1px dotted #94a3b8;
}

.tooltip-text {
    visibility: hidden;
    width: 280px;
    background-color: #1e293b;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -140px;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 12px;
    line-height: 1.5;
    word-break: keep-all;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    font-weight: normal;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 모바일 대응 미디어 쿼리 */
@media (max-width: 992px) {
    .two-column-layout {
        flex-direction: column;
        gap: 20px;
    }
    .left-column, .right-column {
        width: 100%;
        flex: none;
    }
    .chart-container {
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .result-section {
        padding: 15px;
    }
    .result-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .result-table th, .result-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
}

