/* 기본 레이아웃 */
#howms {
    max-width: 600px;
    margin: 30px auto;
    padding: 15px;
    font-family: 'Pretendard', -apple-system, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 탭 메뉴 스타일 */
.tab2-button-outer {
    margin-bottom: 15px;
}

.tab2 {
    display: flex;
    list-style: none;
    padding: 10px 20px;
    margin: 0;
    border-bottom: 2px solid #0056b3;
	width:100%;
}

.tab2 a {
    flex: 1;
    text-decoration: none;
    text-align: center;
}

.tab2 li {
    padding: 12px 20px;
    background: #f8f9fa;
    color: #666;
    font-weight: 600;
    border: 1px solid #dee2e6;
    border-bottom: none;
    cursor: pointer;
}

.tab2 li.on {
    background: #0056b3;
    color: #fff;
    border-color: #0056b3;
}
.tab2 li.on a {
    background: #0056b3;
    color: #fff;
    border-color: #0056b3;
}

/* 모바일 전용 셀렉트 박스 (가로폭이 좁을 때 노출 제어용) */
.tab2-select-outer {
    margin-bottom: 20px;
}

#tab2-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* 제목 스타일 */
.h2_txt {
    font-size: 1.5rem;
    color: #111;
    margin-bottom: 20px;
    text-align: center;
}

.h4_txt {
    font-size: 1.1rem;
    color: #0056b3;
    margin: 30px 0 10px 0;
    padding-left: 10px;
    border-left: 4px solid #0056b3;
}

/* 리스트 스타일 (유의사항, 서류) */
.list_style01, ol {
    background: #fff;
    padding: 15px 15px 15px 30px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.list_style01 li, ol li {
    margin-bottom: 8px;
    color: #444;
}

/* 테이블 공통 스타일 */
.table_style01 {
    margin: 15px 0;
    width: 100%;
}

.table_style01 table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    border-top: 2px solid #333;
}

.table_style01 th {
    background: #f1f3f5;
    padding: 10px 5px;
    border: 1px solid #dee2e6;
    font-weight: 700;
}

.table_style01 td {
    padding: 10px 5px;
    border: 1px solid #dee2e6;
    text-align: center;
    background: #fff;
}

/* 모바일 스크롤 안내 문구 */
.txt_ex_scroll {
    font-size: 0.75rem;
    color: #888;
    text-align: right;
    margin-bottom: 5px;
}

.txt_ex_scroll::before {
    content: "◀ ";
}
.txt_ex_scroll::after {
    content: " ▶";
}

/* 가로 스크롤 영역 */
.m_board_scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: 8px;
}

.m_table_wrap {
    min-width: 600px; /* 테이블 최소 너비 확보 */
}

/* 유틸리티 */
.mt30 { margin-top: 30px !important; }
.mb80 { margin-bottom: 80px !important; }
.indent { list-style-position: outside; }

/* 12톤 초과 등 강조가 필요한 행 */
.table_style01 tbody tr:last-child td {
    background-color: #f8f9ff;
}

/* 기본 레이아웃 설정 */
.sub-page.page-aboutus {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 제목 스타일 */
.h_title {
    border-left: 5px solid #0056b3;
    padding-left: 15px;
    margin: 30px 0 15px 0;
    display: flex;
    flex-direction: column;
}

.h_title h2 {
    font-size: 1.3rem;
    color: #002d5d;
    margin: 0;
    font-weight: 700;
}

/* 본문 텍스트 스타일 */
#content {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

#content p {
    margin: 0;
}

#content strong {
    color: #d93025; /* 강조 텍스트 */
}

/* 테이블 스타일 */
.table_style01 {
    margin-bottom: 40px;
}

/* 가로 스크롤이 필요한 표를 위한 래퍼 */
.m_board_scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.m_table_wrap table {
    width: 100%;
    min-width: 550px; /* 표의 최소 너비 보장 */
    border-collapse: collapse;
    font-size: 0.85rem;
}

.m_table_wrap th {
    background-color: #f1f3f5;
    color: #495057;
    padding: 12px 8px;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.m_table_wrap td {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

/* 유가보조금 지급 한도 테이블 특정 스타일 */
.table_style01 table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 알림 및 강조 문구 */
font[color="red"] {
    display: block;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 600;
}

font[color="blue"] {
    text-decoration: underline;
    font-weight: bold;
}

/* 필요서류 테이블 전용 (스크롤 불필요한 경우) */
.table_style01:not(.mb80) table {
    min-width: 100%;
}

/* 반응형 모바일 대응 */
@media (max-width: 600px) {
    .sub-page.page-aboutus {
        padding: 15px;
    }
    .h_title h2 {
        font-size: 1.15rem;
    }
}