zioinfo-mail/itsm/static/style.css
DESKTOP-TKLFCPR\ython 79061ee89c feat(itsm): Jira-like ITSM 시스템 구현
- FastAPI + SQLAlchemy(aiosqlite) 기반 SR 상태 머신
  (RECEIVED → PARSED → PENDING_APPROVAL → APPROVED → IN_PROGRESS
   → PENDING_PM_VALIDATION → COMPLETED / FAILED_ROLLBACK)
- PM 승인 워크플로우 (ApprovalFlow 테이블)
- SHA-256 해시 체인 감사 로그 (위변조 방지)
- AES-256-GCM 서버 자격증명 암호화 (IP/PW API 미노출)
- CMDB: 기관(MOF/MOIS/MSS) + 서버 정보 관리
- 더미 데이터 자동 시딩 (6개 SR, 3개 기관, 6개 서버)
- Dark-theme SPA: 대시보드 / 칸반 보드 / SR 목록 / 감사 로그 / CMDB

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 19:31:09 +09:00

339 lines
15 KiB
CSS

/* ─── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--sidebar-bg: #0d1117;
--sidebar-hover: #161b22;
--sidebar-active:#1f6feb;
--main-bg: #0d1117;
--card-bg: #161b22;
--border: #30363d;
--text-primary: #c9d1d9;
--text-muted: #8b949e;
--text-bright: #f0f6fc;
--accent: #1f6feb;
--green: #2ea043;
--yellow: #d29922;
--red: #da3633;
--orange: #e3b341;
--purple: #8957e5;
--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--radius: 6px;
--radius-lg: 8px;
}
html, body { height: 100%; font-family: var(--font); background: var(--main-bg); color: var(--text-primary); font-size: 14px; }
/* ─── Layout ────────────────────────────────────── */
#app { display: flex; height: 100vh; overflow: hidden; }
/* ─── Sidebar ───────────────────────────────────── */
#sidebar {
width: 220px; min-width: 180px; flex-shrink: 0;
background: var(--sidebar-bg);
border-right: 1px solid var(--border);
display: flex; flex-direction: column;
}
#sidebar-logo {
padding: 18px 16px 14px;
border-bottom: 1px solid var(--border);
display: flex; align-items: center; gap: 10px;
}
.logo-icon {
width: 32px; height: 32px; border-radius: var(--radius);
background: var(--accent); color: #fff;
font-size: 18px; font-weight: 900;
display: flex; align-items: center; justify-content: center;
}
.logo-title { font-size: 15px; font-weight: 700; color: var(--text-bright); }
.logo-sub { font-size: 11px; color: var(--text-muted); }
#sidebar-nav { flex: 1; padding: 10px 8px; }
.nav-item {
padding: 8px 10px; border-radius: var(--radius);
cursor: pointer; color: var(--text-muted);
display: flex; align-items: center; gap: 8px;
transition: background .12s, color .12s;
margin-bottom: 2px; font-size: 13px;
}
.nav-item:hover { background: var(--sidebar-hover); color: var(--text-primary); }
.nav-item.active { background: var(--sidebar-active); color: #fff; font-weight: 500; }
.nav-icon { font-size: 15px; }
#sidebar-footer {
padding: 12px 16px;
border-top: 1px solid var(--border);
display: flex; align-items: center; gap: 6px;
font-size: 12px; color: var(--text-muted);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.online { background: var(--green); }
/* ─── Main ──────────────────────────────────────── */
#main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
#topbar {
padding: 12px 24px;
border-bottom: 1px solid var(--border);
display: flex; align-items: center; justify-content: space-between;
background: var(--main-bg);
}
#page-title { font-size: 18px; font-weight: 700; color: var(--text-bright); }
/* ─── Views ─────────────────────────────────────── */
.view { display: none; flex: 1; overflow-y: auto; padding: 20px 24px; }
.view.active { display: block; }
/* ─── Buttons ───────────────────────────────────── */
.btn {
padding: 7px 14px; border-radius: var(--radius);
font-size: 13px; font-weight: 500; cursor: pointer;
border: 1px solid transparent; transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-secondary { background: transparent; border-color: var(--border); color: var(--text-primary); }
.btn-approve { background: var(--green); color: #fff; }
.btn-reject { background: var(--red); color: #fff; }
/* ─── Stats row ─────────────────────────────────── */
.stats-row { display: flex; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.stat-card {
background: var(--card-bg); border: 1px solid var(--border);
border-radius: var(--radius-lg); padding: 16px 20px;
min-width: 140px; flex: 1;
}
.stat-value { font-size: 28px; font-weight: 700; color: var(--text-bright); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.stat-card.accent .stat-value { color: var(--accent); }
.stat-card.green .stat-value { color: var(--green); }
.stat-card.yellow .stat-value { color: var(--yellow); }
.stat-card.red .stat-value { color: var(--red); }
/* ─── Dashboard grid ────────────────────────────── */
.dashboard-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; }
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; } }
.card {
background: var(--card-bg); border: 1px solid var(--border);
border-radius: var(--radius-lg); overflow: hidden;
}
.card-header {
padding: 12px 16px; font-size: 13px; font-weight: 600;
color: var(--text-bright); border-bottom: 1px solid var(--border);
}
.card-body { padding: 8px 0; }
/* Recent SR list in dashboard */
.recent-row {
display: flex; align-items: center; gap: 10px;
padding: 8px 16px; border-bottom: 1px solid var(--border);
cursor: pointer; transition: background .1s;
}
.recent-row:last-child { border-bottom: none; }
.recent-row:hover { background: rgba(255,255,255,.04); }
.recent-sr-id { font-size: 12px; color: var(--text-muted); min-width: 150px; }
.recent-title { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-time { font-size: 11px; color: var(--text-muted); }
/* Status donut chart (pure CSS) */
.status-bar-list { padding: 12px 16px; }
.status-bar-item { margin-bottom: 10px; }
.status-bar-label {
display: flex; justify-content: space-between;
font-size: 12px; margin-bottom: 4px;
}
.status-bar-track {
height: 8px; background: var(--border); border-radius: 4px; overflow: hidden;
}
.status-bar-fill { height: 100%; border-radius: 4px; }
/* ─── Status badges ─────────────────────────────── */
.badge {
display: inline-block; padding: 2px 8px; border-radius: 20px;
font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge-RECEIVED { background: rgba(139,148,158,.2); color: #8b949e; }
.badge-PARSED { background: rgba(31,111,235,.2); color: #79c0ff; }
.badge-PENDING_APPROVAL { background: rgba(210,153,34,.2); color: #e3b341; }
.badge-APPROVED { background: rgba(46,160,67,.2); color: #56d364; }
.badge-IN_PROGRESS { background: rgba(31,111,235,.3); color: #58a6ff; }
.badge-PENDING_PM_VALIDATION { background: rgba(137,87,229,.2); color: #bc8cff; }
.badge-COMPLETED { background: rgba(46,160,67,.3); color: #3fb950; }
.badge-FAILED_ROLLBACK { background: rgba(218,54,51,.2); color: #f85149; }
.badge-REJECTED { background: rgba(218,54,51,.15); color: #da3633; }
.badge-priority-CRITICAL { background: rgba(218,54,51,.25); color: #f85149; }
.badge-priority-HIGH { background: rgba(227,179,65,.2); color: #e3b341; }
.badge-priority-MEDIUM { background: rgba(31,111,235,.2); color: #79c0ff; }
.badge-priority-LOW { background: rgba(139,148,158,.2); color: #8b949e; }
.badge-type-DEPLOY { background: rgba(31,111,235,.2); color: #79c0ff; }
.badge-type-RESTART { background: rgba(218,54,51,.18); color: #f85149; }
.badge-type-LOG { background: rgba(137,87,229,.2); color: #bc8cff; }
.badge-type-INQUIRY { background: rgba(139,148,158,.15); color: #8b949e; }
.badge-type-OTHER { background: rgba(139,148,158,.1); color: #8b949e; }
/* ─── Kanban ────────────────────────────────────── */
#kanban-board {
display: flex; gap: 14px; overflow-x: auto;
padding-bottom: 16px; min-height: calc(100vh - 100px);
}
#kanban-board::-webkit-scrollbar { height: 5px; }
#kanban-board::-webkit-scrollbar-thumb { background: var(--border); }
.kanban-col {
min-width: 240px; flex-shrink: 0;
background: var(--card-bg); border: 1px solid var(--border);
border-radius: var(--radius-lg); display: flex; flex-direction: column;
max-height: calc(100vh - 100px);
}
.kanban-col-header {
padding: 10px 14px; font-size: 12px; font-weight: 600;
color: var(--text-muted); border-bottom: 1px solid var(--border);
display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.kanban-col-header .col-count {
background: var(--border); border-radius: 10px;
padding: 1px 6px; font-size: 11px;
}
.kanban-cards { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.kanban-card {
background: var(--main-bg); border: 1px solid var(--border);
border-radius: var(--radius); padding: 10px 12px;
cursor: pointer; transition: border-color .15s;
}
.kanban-card:hover { border-color: var(--accent); }
.kanban-card-id { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.kanban-card-title { font-size: 13px; color: var(--text-bright); line-height: 1.4; margin-bottom: 6px; }
.kanban-card-meta { display: flex; gap: 4px; flex-wrap: wrap; }
/* ─── SR Table ──────────────────────────────────── */
.list-toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.search-box {
flex: 1; min-width: 200px;
background: var(--card-bg); border: 1px solid var(--border);
border-radius: var(--radius); padding: 7px 12px;
color: var(--text-primary); font-size: 13px; outline: none;
}
.search-box:focus { border-color: var(--accent); }
.filter-select {
background: var(--card-bg); border: 1px solid var(--border);
border-radius: var(--radius); padding: 7px 10px;
color: var(--text-primary); font-size: 13px; outline: none; cursor: pointer;
}
.filter-select:focus { border-color: var(--accent); }
.sr-table { width: 100%; border-collapse: collapse; }
.sr-table th {
text-align: left; padding: 10px 12px; font-size: 11px;
font-weight: 600; color: var(--text-muted); text-transform: uppercase;
letter-spacing: .05em; border-bottom: 1px solid var(--border);
}
.sr-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.sr-table tbody tr { cursor: pointer; transition: background .1s; }
.sr-table tbody tr:hover { background: var(--card-bg); }
/* ─── Audit ─────────────────────────────────────── */
.audit-header-row {
display: flex; align-items: center; gap: 12px;
margin-bottom: 14px; flex-wrap: wrap;
}
.audit-title { font-size: 15px; font-weight: 600; color: var(--text-bright); flex: 1; }
#verify-result { font-size: 13px; font-weight: 600; }
#verify-result.ok { color: var(--green); }
#verify-result.fail { color: var(--red); }
.hash-code { font-family: "Consolas", monospace; font-size: 11px; color: var(--text-muted); }
/* ─── CMDB ───────────────────────────────────────── */
.cmdb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cmdb-card {
background: var(--card-bg); border: 1px solid var(--border);
border-radius: var(--radius-lg); overflow: hidden;
}
.cmdb-card-header {
padding: 12px 16px; border-bottom: 1px solid var(--border);
font-weight: 700; color: var(--text-bright); display: flex; justify-content: space-between;
}
.cmdb-servers { padding: 8px 0; }
.cmdb-server-row {
display: flex; align-items: center; gap: 10px;
padding: 7px 16px; font-size: 13px;
}
.cmdb-server-row:hover { background: rgba(255,255,255,.04); }
.server-role-badge {
padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 700;
}
.role-WEB { background: rgba(31,111,235,.25); color: #79c0ff; }
.role-WAS { background: rgba(46,160,67,.25); color: #56d364; }
.role-DB { background: rgba(137,87,229,.25); color: #bc8cff; }
.server-active { color: var(--green); font-size: 12px; margin-left: auto; }
.server-inactive { color: var(--text-muted); font-size: 12px; margin-left: auto; }
/* ─── Modal ─────────────────────────────────────── */
#modal-overlay, #new-sr-overlay {
position: fixed; inset: 0; background: rgba(0,0,0,.6);
z-index: 100; display: flex; align-items: center; justify-content: center;
}
#modal-overlay.hidden, #new-sr-overlay.hidden { display: none; }
#modal {
background: var(--card-bg); border: 1px solid var(--border);
border-radius: var(--radius-lg); width: 660px; max-width: 95vw;
max-height: 85vh; overflow-y: auto; padding: 24px; position: relative;
}
#new-sr-modal {
background: var(--card-bg); border: 1px solid var(--border);
border-radius: var(--radius-lg); width: 500px; max-width: 95vw;
padding: 24px; position: relative;
}
#new-sr-modal h2 { font-size: 16px; margin-bottom: 16px; color: var(--text-bright); }
.modal-close {
position: absolute; top: 14px; right: 14px;
background: none; border: none; color: var(--text-muted);
font-size: 20px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text-bright); }
/* Modal detail sections */
.modal-title { font-size: 18px; font-weight: 700; color: var(--text-bright); margin-bottom: 12px; }
.modal-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.modal-section { margin-bottom: 16px; }
.modal-section-title { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.modal-desc { font-size: 13px; color: var(--text-primary); line-height: 1.6; }
.modal-actions { display: flex; gap: 8px; margin-top: 16px; }
/* Status timeline */
.timeline { border-left: 2px solid var(--border); padding-left: 16px; }
.timeline-item { position: relative; margin-bottom: 12px; }
.timeline-item::before {
content: ""; position: absolute; left: -20px; top: 4px;
width: 8px; height: 8px; border-radius: 50%;
background: var(--border); border: 2px solid var(--card-bg);
}
.timeline-item.done::before { background: var(--green); }
.timeline-item.active::before { background: var(--accent); }
.timeline-action { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.timeline-detail { font-size: 11px; color: var(--text-muted); }
/* Form */
label { display: block; margin-bottom: 10px; font-size: 13px; color: var(--text-muted); }
label input, label select, label textarea {
display: block; width: 100%; margin-top: 4px;
background: var(--main-bg); border: 1px solid var(--border);
border-radius: var(--radius); padding: 8px 10px;
color: var(--text-primary); font-size: 13px; outline: none;
font-family: var(--font);
}
label input:focus, label select:focus, label textarea:focus { border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* ─── Scrollbar ─────────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
*::-webkit-scrollbar { width: 5px; height: 5px; }
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }