/* ============================================================
   daon_perfor - 공사실적 게시판 스타일
   ============================================================ */

/* 테마 기본 헤더 요소 - JS로 내용 교체 후 표시 */
.scontents > .bg_vline,
.scontents > .eng,
.scontents > .stitle {
    display: none;
}

#perfor_board {
    margin: 20px 0 40px;
}

/* 헤더 타이틀 */
.perfor_header {
    text-align: center;
    margin: 10px 0 36px;
}
.perfor_eng {
    font-size: 34px;
    font-weight: 700;
    color: #222;
    margin: 0 0 10px;
    letter-spacing: 2px;
}
.perfor_eng em {
    color: #CD0911;
    font-style: normal;
}
.perfor_sub {
    font-size: 15px;
    color: #888;
    margin: 0;
    font-weight: 400;
}

/* 관리자 버튼 */
.perfor_admin_bar {
    text-align: right;
    margin-bottom: 10px;
}
.btn_perfor_write {
    display: inline-block;
    padding: 7px 16px;
    background: #CD0911;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
}
.btn_perfor_write:hover { background: #a80009; color: #fff; }

/* 탭 메뉴 */
.perfor_tabs {
    display: flex;
    gap: 3px;
    margin-bottom: 36px;
}
.perfor_tab {
    flex: 1;
    display: block;
    padding: 16px 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    background: #efefef;
    border: none;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.perfor_tab.active {
    background: #CD0911;
    color: #fff;
}
.perfor_tab:hover:not(.active) {
    background: #e2e2e2;
    color: #333;
}

/* 섹션 타이틀 */
.perfor_section {
    margin-bottom: 40px;
}
.perfor_section_title {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}
.perfor_icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background:
        linear-gradient(to right, #CD0911 50%, #222 50%),
        linear-gradient(to bottom, #CD0911 50%, #222 50%);
    background-size: 20px 10px, 10px 20px;
    background-repeat: no-repeat, no-repeat;
    margin-right: 10px;
    flex-shrink: 0;
}
.perfor_section_title h3 {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

/* 테이블 */
.perfor_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.perfor_table thead tr {
    background: #f5f5f5;
}
.perfor_table th {
    padding: 11px 8px;
    border-top: 2px solid #333;
    border-bottom: 1px solid #ccc;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}
.perfor_table td {
    padding: 9px 8px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    color: #444;
    vertical-align: middle;
}
.perfor_table tbody tr:hover {
    background: #fafafa;
}
.col_no     { text-align: center; width: 60px; }
.col_name   { text-align: left; white-space: normal; word-break: break-word; width: 55%; }
.col_country { text-align: center; width: 150px; }
.col_amount { text-align: center; width: 140px; }
.col_period { text-align: center; width: 160px; }
.col_client { text-align: center; width: 180px; }
.col_mgmt   { text-align: center; width: 140px; white-space: nowrap; }

.no_data {
    text-align: center;
    padding: 30px;
    color: #999;
}

/* 관리 버튼 */
.btn_insert, .btn_edit, .btn_del {
    display: inline-block;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 3px;
    text-decoration: none;
}
.btn_insert {
    background: #4a90d9;
    color: #fff;
    margin-right: 3px;
}
.btn_insert:hover { background: #357abd; color: #fff; }
.btn_edit {
    background: #999;
    color: #fff;
    margin-right: 3px;
}
.btn_edit:hover { background: #777; color: #fff; }
.btn_del {
    background: #CD0911;
    color: #fff;
}
.btn_del:hover { background: #a80009; color: #fff; }

/* 서브탭 (플랜트사업부문) */
.perfor_subtabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 50%;
    margin: 0 auto 30px;
}
.perfor_subtab {
    flex: 1;
    cursor: pointer;
    padding: 14px 10px;
    font-size: 15px;
    font-weight: 600;
    color: #888;
    background: #e8e8e8;
    border: none;
    border-radius: 0;
    text-align: center;
    transition: background 0.15s, color 0.15s;
    user-select: none;
}
.perfor_subtab.active {
    background: #5e5e5e;
    color: #fff;
}
.perfor_subtab:hover:not(.active) {
    background: #d8d8d8;
    color: #555;
}

/* 반응형 */
@media (max-width: 768px) {
    .perfor_eng { font-size: 22px; }
    .perfor_tab { font-size: 13px; padding: 12px 6px; }
    .perfor_table { font-size: 12px; }
    .col_amount, .col_client { display: none; }

    .perfor_subtabs {
        width: 100%;
        gap: 0;
    }
    .perfor_subtab {
        font-size: 13px;
        padding: 12px 6px;
    }
}
