#certTable_CM thead th:first-child,
#certTable_CM tbody td:first-child {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    text-align: center;
}

#certTable_CM input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
}

.cert-employee-search {
    position: relative;
}

.cert-employee-dropdown {
    display: none;
    max-height: 12rem;
    overflow-y: auto;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    padding: 4px 0;
}

.cert-employee-dropdown-item {
    font-size: 0.875rem;
    color: #374151;
}

.cert-employee-dropdown-item strong {
    color: #111827;
    font-weight: 600;
    margin-right: 4px;
}

.cert-employee-dropdown-empty {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
}

.cert-employee-dropdown-item.bg-blue-50 {
    background-color: #eff6ff;
}

.cert-employee-search input[readonly] {
    cursor: default;
}

#certTable_CM thead th,
#certTable_CM tbody td {
    padding: 6px 8px;
    height: 32px;
    line-height: 20px;
}

#certTable_CM thead th:last-child,
#certTable_CM tbody td:last-child {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    text-align: center;
}

/* 자격관리 (Certification Management) 페이지 스타일 */

/* [CERT:input-table-override] START - 자격관리 테이블 input-table 스타일 오버라이드 */
#certTable_CM.input-table tbody tr.editing-mode {
    background-color: #fef3c7; /* 연노랑 - 편집 중 */
}

#certTable_CM.input-table tbody tr.new-row {
    background-color: #fef9e7; /* 더 밝은 연노랑 - 신규 행 */
    animation: fadeIn 0.3s ease-in;
}

#certTable_CM.input-table tbody tr.new-row.attention {
    animation: cert-row-attention 0.6s ease-in-out;
}

@keyframes cert-row-attention {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.0);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.25);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.0);
    }
}

/* 신규 행 입력창 테두리 제거 */
#certTable_CM.input-table tbody tr.new-row input[type="text"],
#certTable_CM.input-table tbody tr.new-row input[type="date"],
#certTable_CM.input-table tbody tr.new-row select {
    border: none;
    background: transparent;
    padding: 6px 8px;
    height: 32px;
    line-height: 20px;
}

#certTable_CM.input-table tbody tr.new-row input[type="text"]:focus,
#certTable_CM.input-table tbody tr.new-row input[type="date"]:focus,
#certTable_CM.input-table tbody tr.new-row select:focus {
    outline: none;
    border: none;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.5);
}
/* [CERT:input-table-override] END */

/* [CERT:action-buttons] START - 작업 버튼 아이콘 스타일 */
.cert-actions {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.cert-actions .cert-action {
    padding: 4px;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cert-actions .cert-action i {
    font-size: 14px;
}

.cert-actions .cert-action.edit {
    color: #3b82f6;
}
.cert-actions .cert-action.edit:hover {
    color: #1d4ed8;
}

.cert-actions .cert-action.delete {
    color: #ef4444;
}
.cert-actions .cert-action.delete:hover {
    color: #b91c1c;
}

.cert-actions .cert-action.save {
    color: #10b981;
}
.cert-actions .cert-action.save:hover {
    color: #059669;
}

.cert-actions .cert-action.cancel {
    color: #6b7280;
}
.cert-actions .cert-action.cancel:hover {
    color: #4b5563;
}
/* [CERT:action-buttons] END */

/* 슬라이서 칩 스타일 (직원관리와 동일) */
.slicer-button {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #d1d5db;
    background-color: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.slicer-button:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.slicer-button.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.slicer-button.total-slicer {
    background-color: #8b5cf6;
    border-color: #8b5cf6;
    color: white;
}

/* 사진 업로드 버튼 */
.cert-photo-upload-btn {
    padding: 2px 6px;
    background-color: #6366f1;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    height: 24px;
    line-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.cert-photo-upload-btn:hover {
    background-color: #4f46e5;
}

.cert-photo-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cert-photo-thumbs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cert-photo-thumb {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    cursor: pointer;
    flex: 0 0 28px;
}

.cert-photo-thumb:hover {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35);
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .cert-table {
        font-size: 11px;
    }
    
    .cert-table thead th,
    .cert-table tbody td {
        padding: 6px 4px;
    }
}

