/* rmrStat.css - 모던 통계 시스템 스타일 */

/* KPI 카드 스타일 */
.kpi-card {
    transition: transform 0.3s ease;
    cursor: pointer;
}
.kpi-card:hover {
    transform: translateY(-5px);
}
.kpi-card .inner h3 {
    font-size: 2.2rem;
    font-weight: 700;
}
.kpi-card .inner p {
    font-size: 1.1rem;
    font-weight: 500;
}
.col-sm-12{
    overflow-x: auto;
}
/* 프로그레스 바 커스텀 */
.progress-sm {
    height: 8px;
    border-radius: 4px;
}

/* 리스크 테이블 강조 */
#riskTable tbody tr td:first-child {
    font-weight: bold;
}
.badge-delayed { background-color: #dc3545; color: white; } /* 장기 미회신 */
.badge-approaching { background-color: #ffc107; color: #212529; } /* 마감 임박 */

/* 탭 전환 애니메이션 */
.tab-pane {
    animation: fadeIn 0.4s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ROI 통계 영역 */
#automationStats .info-box {
    box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
    border-radius: .25rem;
    background: #fff;
    display: flex;
    margin-bottom: 1rem;
    min-height: 80px;
    padding: .5rem;
    position: relative;
}

/* DataTables 긴 텍스트 강제 줄바꿈 */
table#expiryTable td.cell-text-wrap {
	white-space: normal !important;    /* 한 줄 고정 해제 */
	word-wrap: break-word !important;
    word-break: break-all !important;  /* 띄었쓰기 없는 긴 영문/url도 무조건 자름 */
    min-width: 200px;       /* 너무 좁아지면 글자가 세로로 한 줄씩 서는 것을 방지 */
}

/* rmrStatList.jsp head > style의 내용 추가 by ocean on 2026-05-08 */
.table-stat th {
    background-color: #f4f6f9;
    text-align: center;
    vertical-align: middle !important;
    font-size: 0.9rem;
}

.table-stat td {
    text-align: center;
    vertical-align: middle !important;
}

.bg-total {
    background-color: #fff9e6;
    font-weight: bold;
}

/* 커스텀 월 선택기 스타일 */
#customMonthPickerPopup {
    display: none;
    position: absolute;
    width: 220px;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1050;
    padding: 10px;
}

.cmp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.cmp-year {
    font-weight: bold;
    font-size: 1.1rem;
}

.cmp-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.cmp-month-btn {
    padding: 5px 0;
    text-align: center;
    cursor: pointer;
    border-radius: 3px;
    border: 1px solid #eee;
    font-size: 0.85rem;
}

.cmp-month-btn:hover {
    background-color: #f8f9fa;
}

.cmp-month-btn.active {
    background-color: #007bff;
    color: #fff;
    border-color:#007bff;
}

.badge-ready {
    background-color: #17a2b8;
    color: #fff;
}

/* DataTable 디자인 수정 */
.dataTables_length select {
    padding: 0 25px 0 10px !important;
    height: 30px !important;
    font-size: 0.85rem !important;
    background-position: right 5px center !important;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.page-link:hover {
    background-color: #e9ecef !important;
    color: #0056b3 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #007bff !important;
}

.px-lr75 {
	padding-right: 0.75rem !important;
	padding-left: 0.75rem !important;	
}