/* Custom CSS for the Risk Management System */

body {
    background-color: #f8f9fa;
    font-family: 'Noto Sans KR', sans-serif;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    border: none;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    font-weight: bold;
}

.table {
    border-collapse: collapse;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

footer {
    margin-top: 3rem;
    border-top: 1px solid #e3e3e3;
}

/* Form styling */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 영업지원 확인 드롭다운 스타일 */
.form-select-sm {
    font-size: 0.875rem;
    min-width: 100px;
}

/* 상태 배지 스타일 */
.badge {
    padding: 0.4em 0.6em;
    font-weight: 500;
}

/* 테이블 열 너비 최적화 */
.table th:nth-child(1), .table td:nth-child(1) {  /* 등록일자 */
    width: 100px;
    white-space: nowrap;
}

.table th:nth-child(2), .table td:nth-child(2) {  /* 고객번호 */
    width: 80px;
    white-space: nowrap;
}

.table th:nth-child(3), .table td:nth-child(3) {  /* 고객명 */
    width: 150px;
}

.table th:nth-child(4), .table td:nth-child(4) {  /* 지점 */
    width: 100px;
}

.table th:nth-child(5), .table td:nth-child(5) {  /* 영업사원 */
    width: 120px;
}

.table th:nth-child(6), 
.table th:nth-child(7), 
.table th:nth-child(8), 
.table th:nth-child(9), 
.table td:nth-child(6), 
.table td:nth-child(7), 
.table td:nth-child(8), 
.table td:nth-child(9) {  /* 금액 열 */
    width: 120px;
    text-align: right;
}

.table th:nth-child(10), .table td:nth-child(10) {  /* 영업지원 확인 */
    width: 120px;
    text-align: center;
}

.table th:nth-child(11), .table td:nth-child(11) {  /* 상세 */
    width: 80px;
    text-align: center;
}

/* 필터 카드 스타일 */
.card.filter-card {
    margin-bottom: 1.5rem;
}

/* Table responsive fixes */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .table th, .table td {
        white-space: nowrap;
    }
}
