/**
 * SPRINT 목록 페이지 공통 스타일
 * Output/Outcome 목록에서 공유하는 스타일
 */

/* 로딩/에러/빈 상태 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error {
    text-align: center;
    padding: 40px;
    color: #f44336;
}

.empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 페이지네이션 스타일 */
.pagination__wr {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}

.pagination__wr a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #E5E5EC;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination__wr a:hover {
    background: #f5f5f5;
}

.pagination__wr a.active {
    background: #1A0A0B;
    color: #fff;
    border-color: #1A0A0B;
}

/* 모달 스타일 */
.popup__wr {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transform: none;
}

.popup__wr.active {
    display: flex;
}

.popup__wr .popup__inner {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: static;
    top: auto;
    left: auto;
    transform: none;
}

.pop__hd__wr {
    padding: 16px 20px;
    border-bottom: 1px solid #E5E5EC;
}

.pop__con {
    padding: 20px;
}

/* 폼 그룹 */
.form__group {
    margin-bottom: 16px;
}

.form__group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form__group input[type="text"],
.form__group input[type="number"],
.form__group textarea,
.form__group input[type="date"],
.form__group select {
    width: 100%;
    border: 1px solid #E5E5EC;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form__group textarea {
    min-height: 80px;
    resize: vertical;
}

.form__row {
    display: flex;
    gap: 16px;
}

.form__row .form__group {
    flex: 1;
}

/* 버튼 그룹 */
.btn__group {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn__group .main__btn {
    padding: 0 20px;
}

.btn__group .main__btn.cancel {
    background: #f5f5f5;
    color: #666;
}

/* 추가 버튼 영역 */
.add__list {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, height 0.2s ease;
}

.add__list.open {
    opacity: 1;
    height: auto;
}

.add__list a {
    padding: 8px 16px;
    color: #666;
    font-size: 13px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.add__list a:hover {
    background-color: #f5f5f5;
}

/* 중첩 테이블 (지표 서브테이블) */
.indicator-subtable-row {
    background: #fafafa;
}

.indicator-subtable-row > td {
    padding: 0 !important;
}

/* 테이블 마지막 행 테두리 */
table tr:last-child {
    border-bottom: 1px solid #E5E5EC;
}

/* OD 첨부파일 스타일 */
.od-attachments-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.od-attachment-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.od-attachment-item .file__tx {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.od-delete-attachment-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    padding: 0 4px;
    line-height: 1;
}

.od-delete-attachment-btn:hover {
    color: #e74c3c;
}

.od-file-upload-area {
    margin-top: 4px;
}

.od-file-label {
    font-size: 12px;
    color: #1976d2;
    cursor: pointer;
}

.od-file-label:hover {
    text-decoration: underline;
}

