보안 감사 결과 CRITICAL 2건, HIGH 5건 발견 → 수정 완료 + 자동화 구축. [보안 수정] - issue-view.js: 하드코딩 비밀번호 → crypto.getRandomValues() 랜덤 생성 - pushSubscriptionController.js: ntfy 비밀번호 → process.env.NTFY_SUB_PASSWORD - DEPLOY-GUIDE.md/PROGRESS.md/migration SQL: 평문 비밀번호 → placeholder - docker-compose.yml/.env.example: NTFY_SUB_PASSWORD 환경변수 추가 [보안 강제 시스템 - 신규] - scripts/security-scan.sh: 8개 규칙 (CRITICAL 2, HIGH 4, MEDIUM 2) 3모드(staged/all/diff), severity, .securityignore, MEDIUM 임계값 - .githooks/pre-commit: 로컬 빠른 피드백 - .githooks/pre-receive-server.sh: Gitea 서버 최종 차단 bypass 거버넌스([SECURITY-BYPASS: 사유] + 사용자 제한 + 로그) - SECURITY-CHECKLIST.md: 10개 카테고리 자동/수동 구분 - docs/SECURITY-GUIDE.md: 운영자 가이드 (워크플로우, bypass, FAQ) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
362 lines
5.7 KiB
CSS
362 lines
5.7 KiB
CSS
/* equipment-management.css */
|
|
/* 설비 관리 페이지 전용 스타일 */
|
|
|
|
/* 통계 요약 섹션 */
|
|
.eq-stats-section {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.eq-stat-card {
|
|
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
|
|
border-radius: 12px;
|
|
padding: 1.25rem;
|
|
border: 1px solid #e2e8f0;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.eq-stat-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.eq-stat-card.highlight {
|
|
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
|
|
color: white;
|
|
border: none;
|
|
}
|
|
|
|
.eq-stat-card.highlight .eq-stat-label {
|
|
color: rgba(255, 255, 255, 0.85);
|
|
}
|
|
|
|
.eq-stat-label {
|
|
font-size: 0.8rem;
|
|
color: #64748b;
|
|
margin-bottom: 0.5rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.eq-stat-value {
|
|
font-size: 1.75rem;
|
|
font-weight: 700;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.eq-stat-sub {
|
|
font-size: 0.75rem;
|
|
color: #94a3b8;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.eq-stat-card.highlight .eq-stat-sub {
|
|
color: rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
/* 필터 섹션 개선 */
|
|
.eq-filter-section {
|
|
background: #f8fafc;
|
|
border-radius: 12px;
|
|
padding: 1rem 1.25rem;
|
|
margin-bottom: 1.5rem;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.eq-filter-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
min-width: 140px;
|
|
}
|
|
|
|
.eq-filter-group label {
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: #64748b;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.eq-filter-group .form-control {
|
|
padding: 0.5rem 0.75rem;
|
|
font-size: 0.875rem;
|
|
border-radius: 8px;
|
|
border: 1px solid #e2e8f0;
|
|
background: white;
|
|
}
|
|
|
|
.eq-filter-group .form-control:focus {
|
|
border-color: #3b82f6;
|
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
}
|
|
|
|
.eq-search-group {
|
|
flex: 1;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.eq-search-group .form-control {
|
|
width: 100%;
|
|
}
|
|
|
|
/* 테이블 개선 */
|
|
.eq-table-container {
|
|
background: white;
|
|
border-radius: 12px;
|
|
border: 1px solid #e2e8f0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.eq-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.eq-table thead {
|
|
background: #f1f5f9;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
.eq-table th {
|
|
padding: 0.875rem 1rem;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
color: #475569;
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
border-bottom: 2px solid #e2e8f0;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.eq-table td {
|
|
padding: 0.75rem 1rem;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.eq-table tbody tr {
|
|
transition: background 0.15s ease;
|
|
}
|
|
|
|
.eq-table tbody tr:hover {
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.eq-table tbody tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* 테이블 컬럼별 스타일 */
|
|
.eq-col-code {
|
|
font-weight: 600;
|
|
color: #1e40af;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.eq-col-name {
|
|
font-weight: 500;
|
|
color: #1e293b;
|
|
max-width: 200px;
|
|
}
|
|
|
|
.eq-col-model,
|
|
.eq-col-spec {
|
|
color: #64748b;
|
|
font-size: 0.8125rem;
|
|
max-width: 150px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.eq-col-price {
|
|
font-weight: 600;
|
|
color: #059669;
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.eq-col-date {
|
|
color: #64748b;
|
|
font-size: 0.8125rem;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* 상태 배지 */
|
|
.eq-status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 0.25rem 0.625rem;
|
|
border-radius: 9999px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.eq-status-active {
|
|
background: #dcfce7;
|
|
color: #166534;
|
|
}
|
|
|
|
.eq-status-maintenance {
|
|
background: #fef3c7;
|
|
color: #92400e;
|
|
}
|
|
|
|
.eq-status-inactive {
|
|
background: #fee2e2;
|
|
color: #991b1b;
|
|
}
|
|
|
|
/* 액션 버튼 */
|
|
.eq-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.eq-btn-action {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.eq-btn-edit {
|
|
background: #eff6ff;
|
|
color: #3b82f6;
|
|
}
|
|
|
|
.eq-btn-edit:hover {
|
|
background: #3b82f6;
|
|
color: white;
|
|
}
|
|
|
|
.eq-btn-delete {
|
|
background: #fef2f2;
|
|
color: #ef4444;
|
|
}
|
|
|
|
.eq-btn-delete:hover {
|
|
background: #ef4444;
|
|
color: white;
|
|
}
|
|
|
|
/* 빈 상태 */
|
|
.eq-empty-state {
|
|
text-align: center;
|
|
padding: 4rem 2rem;
|
|
color: #64748b;
|
|
}
|
|
|
|
.eq-empty-state p {
|
|
margin-bottom: 1.5rem;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* 테이블 스크롤 래퍼 */
|
|
.eq-table-wrapper {
|
|
overflow-x: auto;
|
|
max-height: calc(100vh - 380px);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* 결과 카운트 */
|
|
.eq-result-count {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.75rem 1rem;
|
|
background: #f8fafc;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
font-size: 0.8125rem;
|
|
color: #64748b;
|
|
}
|
|
|
|
.eq-result-count strong {
|
|
color: #1e293b;
|
|
}
|
|
|
|
/* 반응형 */
|
|
@media (max-width: 1200px) {
|
|
.eq-stats-section {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.eq-stats-section {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.eq-filter-section {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.eq-filter-group {
|
|
width: 100%;
|
|
}
|
|
|
|
.eq-table th,
|
|
.eq-table td {
|
|
padding: 0.625rem 0.75rem;
|
|
}
|
|
|
|
.eq-col-spec,
|
|
.eq-col-model {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* 모달 개선 */
|
|
.eq-modal-body {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.eq-form-section {
|
|
margin-bottom: 1.5rem;
|
|
padding-bottom: 1.5rem;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
}
|
|
|
|
.eq-form-section:last-child {
|
|
margin-bottom: 0;
|
|
padding-bottom: 0;
|
|
border-bottom: none;
|
|
}
|
|
|
|
.eq-form-section-title {
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
color: #3b82f6;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.eq-form-row {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 1rem;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.eq-form-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|