/**
 * app/static/css/legislation.css
 * 건설업 법령 정보 전용 스타일 (레이아웃 내부 스크롤 방식 복구)
 */

.legislation-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px); /* 헤더 제외 높이 고정 */
    overflow: hidden;
}

.legislation-container {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    width: 100%;
    overflow-y: auto; /* 내부 컨테이너에서 스크롤 발생 */
}

/* 커스텀 스크롤바 (legislation-container 전용) */
.legislation-container::-webkit-scrollbar { width: 8px; height: 8px; }
.legislation-container::-webkit-scrollbar-track { background: var(--bg); }
.legislation-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
.legislation-container::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.page-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-section {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 600px;
    align-items: center;
}

.legis-table-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.legis-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.legis-table th {
    background: var(--bg);
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    text-align: left;
    border-bottom: 2px solid var(--border);
    /* 내부 스크롤 시에도 테이블 헤더 고정 */
    position: sticky;
    top: 0;
    z-index: 10;
}

.legis-table td {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top !important;
    font-size: 14px;
    line-height: 1.6;
}

.legis-table tr:hover {
    background: rgba(var(--primary-rgb), 0.02);
}

.category-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.industry-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.work-field-text {
    font-size: 12px;
    color: var(--muted);
}

.capital-text {
    font-weight: 700;
    font-size: 15px;
    color: #10b981;
}

.pre-wrap {
    white-space: pre-wrap;
    word-break: keep-all;
    margin: 0;
    padding: 0;
}

.section-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.facility-box {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

/* 입력창 공통 보정 */
.legislation-container .input {
    height: 40px !important;
    margin: 0 !important;
    font-size: 14px;
}
