style: 레이아웃 비율 복구 및 타이포그래피 전역 표준화 (16px Base)

- 주요 변경 사항:
  1. 레이아웃 안정화: 서버 위치도 뷰의 2:1 비율 복원 및 가변형(Adaptive) 레이아웃 적용
  2. 타이포그래피 표준화: 전역 폰트 스케일 도입 및 기본 폰트 사이즈 상향 (15px -> 16px)
  3. 3-Way 토글 통합: [자산 위치] [운영 현황] [자산 목록] 간의 전환 오류 수정 및 UI 통일
  4. 하드코딩 제거: 인라인 스타일을 CSS 클래스 및 변수 체계로 전면 리팩토링
  5. 가이드 업데이트: 변경된 디자인 정책을 design_rule.md에 반영
This commit is contained in:
2026-06-15 14:21:54 +09:00
parent b169176d57
commit 119c799d1d
9 changed files with 1196 additions and 1052 deletions

View File

@@ -13,534 +13,88 @@
.dashboard-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
gap: 0;
border-top: 1px solid var(--border-color);
}
/* Premium Executive Divider-based Style (Line-based Division) */
.dashboard-card, .stat-card {
background: transparent;
backdrop-filter: none;
-webkit-backdrop-filter: none;
background: #fff;
border: none;
border-right: 1px solid var(--border-color);
border-bottom: 1px solid var(--border-color);
box-shadow: none;
border-radius: 0;
padding: 1.5rem 0.5rem;
padding: 1.5rem;
display: flex;
flex-direction: column;
transition: opacity 0.2s ease;
}
.dashboard-card:hover, .stat-card:hover {
transform: none;
box-shadow: none;
opacity: 0.85;
}
.dashboard-layout-2col {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
}
.dashboard-layout-3col {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem;
}
.dashboard-card {
min-height: 380px;
}
.dashboard-stats-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem;
margin-bottom: 2rem;
gap: 0;
border-top: 1px solid var(--border-color);
}
/* Premium KPI Value Styling */
.stat-value {
font-size: 3.21rem;
font-size: var(--fs-xl);
font-weight: 900;
background: linear-gradient(135deg, #1E5149 0%, #3B82F6 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
color: var(--text-main);
margin-top: 0.5rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.stat-value-danger {
background: linear-gradient(135deg, #E11D48 0%, #F59E0B 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.stat-label {
font-size: 1.81rem;
font-size: var(--fs-base);
color: var(--text-muted);
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.stat-icon {
width: 48px;
height: 48px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1rem;
}
.icon-blue { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.icon-green { background: rgba(30, 81, 73, 0.1); color: #1E5149; }
.icon-red { background: rgba(225, 29, 72, 0.1); color: #E11D48; }
.icon-yellow { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.table-premium {
background: white;
border-radius: 12px;
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
border: none;
box-shadow: none;
border-radius: 0;
border-bottom: 1px solid var(--border-color);
overflow: hidden;
}
.table-premium table {
width: 100%;
border-collapse: collapse;
}
.table-premium th {
background: #F8FAFC;
color: #475569;
font-weight: 800;
padding: 1rem;
text-transform: uppercase;
font-size: 1.28rem;
letter-spacing: 0.05em;
padding: 0.75rem 1rem;
font-size: var(--fs-sm);
border-bottom: 2px solid var(--border-color);
}
.table-premium td {
padding: 1rem;
padding: 0.75rem 1rem;
border-bottom: 1px solid #E2E8F0;
color: #1E293B;
font-size: 21px;
}
.table-premium tr:hover td {
background: #F1F5F9;
}
/* --- Slider/Carousel Specific Styles --- */
.dashboard-header-wrapper {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
.slider-controls {
display: flex;
align-items: center;
gap: 1rem;
}
.slider-nav-btn {
background: white;
border: 1px solid var(--border-color);
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
border-radius: 50%;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: var(--text-main);
transition: all 0.2s;
}
.slider-nav-btn:hover {
background: var(--primary-color);
color: white;
border-color: var(--primary-color);
}
.slider-nav-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.page-info {
font-size: 1.28rem;
color: var(--text-muted);
font-weight: 700;
}
.page-btns button {
padding: 0.3rem 0.75rem;
border: 1px solid var(--border-color);
background: var(--white);
border-radius: 4px;
font-size: 1.28rem;
cursor: pointer;
}
.page-btns button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.slider-indicator {
font-weight: 800;
color: var(--text-muted);
font-size: 1.88rem;
}
.dashboard-slider-viewport {
width: 100%;
overflow: hidden;
padding: 0.5rem 0;
}
.dashboard-slider-track {
display: flex;
transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
width: 400%; /* For 4 pages */
}
.dashboard-slide {
width: 25%; /* 100% / 4 pages */
flex-shrink: 0;
padding: 0 2px; /* Slight padding to avoid cutting off box-shadows */
height: calc(100vh - 150px);
min-height: 520px;
display: flex;
flex-direction: column;
box-sizing: border-box;
}
/* --- Location View Styles --- */
.location-layout {
display: grid;
grid-template-columns: 1.2fr 1fr;
gap: 2rem;
height: calc(100vh - 180px);
}
.map-section, .asset-section {
display: flex;
flex-direction: column;
}
.section-title {
font-size: 1.5rem;
font-weight: 800;
margin-bottom: 1rem;
color: var(--text-main);
display: flex;
align-items: center;
}
.map-wrapper {
flex: 1;
background: #f8fafc;
box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}
.location-box {
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
user-select: none;
}
.location-box:hover {
background: rgba(30, 81, 73, 0.2) !important;
transform: scale(1.02);
z-index: 10;
}
.location-box:active {
transform: scale(0.98);
}
.asset-section .table-container {
flex: 1;
overflow-y: auto;
}
.status-tag {
display: inline-block;
padding: 0.25rem 0.625rem;
border-radius: 9999px;
font-size: 1rem;
font-weight: 700;
background: #ecfdf5;
color: #059669;
border: 1px solid #d1fae5;
}
.view-toggle-btn:hover {
border-color: var(--primary-color) !important;
color: var(--primary-color) !important;
}
.view-toggle-btn.active:hover {
color: white !important;
}
/* --- View Toggle Header --- */
.view-header {
padding: 0.5rem 1.5rem;
background: var(--white);
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: flex-start;
gap: 1rem;
}
.view-toggle-container {
display: flex;
background: #f1f5f9;
padding: 0.25rem;
border-radius: 8px;
gap: 0.25rem;
}
.mode-toggle-btn {
padding: 0.5rem 1rem;
border: none;
background: transparent;
border-radius: 6px;
font-size: 1.08rem;
font-weight: 700;
color: var(--text-muted);
cursor: pointer;
transition: all 0.2s ease;
}
.mode-toggle-btn:hover {
color: var(--text-main);
}
.mode-toggle-btn.active {
background: var(--white);
color: var(--primary-color);
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
/* --- Enhanced Location View --- */
.location-view-wrapper {
display: flex;
flex-direction: column;
height: calc(100vh - 120px);
}
.location-filter-bar {
padding: 1rem 1.5rem;
background: var(--white);
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
gap: 2rem;
}
.filter-group {
display: flex;
align-items: center;
gap: 0.75rem;
}
.filter-group label {
font-size: 1.08rem;
font-weight: 800;
color: var(--text-main);
}
.filter-group select {
padding: 0.4rem 0.75rem;
border: 1px solid var(--border-color);
border-radius: 6px;
font-size: 1.08rem;
color: var(--text-main);
background: var(--white);
min-width: 140px;
}
.map-pagination {
margin-left: auto;
display: flex;
align-items: center;
gap: 1rem;
}
.location-main-content {
flex: 1;
display: grid;
grid-template-columns: 1.4fr 1fr;
gap: 1.5rem;
padding: 1.5rem;
overflow: hidden;
}
.map-container-section {
display: flex;
flex-direction: column;
overflow: auto;
}
.location-box-point {
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.box-label-text {
font-size: 0.87rem;
font-weight: 900;
color: var(--primary-color);
pointer-events: none;
text-shadow: 0 0 2px white;
}
.asset-list-section {
background: var(--white);
border-radius: 12px;
border: 1px solid var(--border-color);
display: flex;
flex-direction: column;
overflow: hidden;
}
.asset-list-section .section-header {
padding: 1rem 1.25rem;
border-bottom: 1px solid var(--border-color);
background: #f8fafc;
}
.asset-list-section h4 {
margin: 0;
font-size: 1.25rem;
color: var(--text-main);
}
.mini-table-wrapper {
flex: 1;
overflow-y: auto;
}
.compact-table {
width: 100%;
border-collapse: collapse;
}
.compact-table th {
position: sticky;
top: 0;
background: var(--white);
padding: 0.75rem 1rem;
text-align: left;
font-size: 1rem;
font-weight: 800;
color: var(--text-muted);
border-bottom: 1px solid var(--border-color);
}
.compact-table td {
padding: 0.75rem 1rem;
font-size: 1.08rem;
border-bottom: 1px solid #f1f5f9;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 150px;
}
.compact-table tr.clickable-row:hover {
background: #f1f5f9;
cursor: pointer;
}
/* --- Asset Detail Sidebar (LocationView) --- */
.asset-detail-sidebar {
padding-top: 1rem;
background: var(--white);
height: 100%;
overflow-y: auto;
}
.detail-section {
margin-bottom: 20px;
padding: 0 1.25rem;
}
.detail-section-title {
font-size: 17px;
font-weight: 800;
color: var(--primary-color);
border-bottom: 1px solid var(--border-color);
padding-bottom: 6px;
margin-bottom: 12px;
}
.detail-grid {
display: grid;
grid-template-columns: repeat(2, minmax(80px, auto) 1fr);
gap: 8px 16px;
}
.detail-label {
font-size: 16px;
color: var(--text-muted);
font-weight: 700;
display: flex;
align-items: center;
}
.detail-value {
font-size: 19px;
color: var(--text-main);
font-weight: 600;
word-break: break-all;
display: flex;
align-items: center;
}
.detail-header-actions {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
}
.detail-header-title {
flex: 1;
font-size: 1.27rem;
font-weight: 800;
font-size: var(--fs-base);
}
/* --- System Dashboard Stats Row (ListFactory) --- */
.dashboard-stats-row {
display: grid;
grid-template-columns: 1fr 1.5fr 1.5fr;
gap: 2rem;
gap: 0;
border-bottom: 1px solid var(--border-color);
padding-bottom: 1.25rem;
padding: 0;
margin-bottom: 1rem;
flex-shrink: 0;
background: #fff;
}
.stat-group-item {
min-width: 0;
display: flex;
flex-direction: column;
padding: 1.5rem;
}
.stat-group-item.bordered {
@@ -549,7 +103,7 @@
}
.stat-group-item .stat-label {
font-size: 15px;
font-size: var(--fs-sm);
font-weight: 600;
color: var(--text-muted);
margin-bottom: 0.25rem;
@@ -557,16 +111,16 @@
}
.stat-group-item .stat-value {
font-size: 37px;
font-size: var(--fs-xl);
font-weight: 900;
color: var(--text-main);
line-height: 1.1;
background: none;
-webkit-text-fill-color: initial;
display: flex;
align-items: baseline;
}
.stat-group-item .stat-value span {
font-size: 17px;
font-size: var(--fs-sm);
font-weight: 700;
margin-left: 4px;
color: var(--text-muted);
@@ -575,13 +129,14 @@
.stat-group-item .stat-sub {
display: flex;
gap: 1rem;
font-size: 19px;
font-size: var(--fs-base);
color: var(--text-muted);
margin-top: 0.5rem;
}
.stat-group-item .stat-sub strong {
font-size: 24px;
font-size: var(--fs-md);
font-weight: 800;
}
.text-primary {
@@ -597,25 +152,16 @@
}
.stat-title {
font-size: 19px;
font-size: var(--fs-base);
font-weight: 900;
color: var(--text-main);
white-space: nowrap;
}
.stat-badges {
display: flex;
gap: 4px;
flex-wrap: wrap;
justify-content: flex-end;
}
.detail-stat-body {
display: flex;
flex-direction: column;
gap: 0.4rem;
font-size: 17px;
color: var(--text-muted);
gap: 0.5rem;
}
.loc-summary {
@@ -624,9 +170,15 @@
flex-wrap: wrap;
}
.loc-summary span {
font-size: var(--fs-sm);
color: var(--text-muted);
}
.loc-summary span strong {
color: var(--text-main);
font-size: 19px;
font-size: var(--fs-base);
font-weight: 800;
}
.type-summary {
@@ -641,11 +193,14 @@
.type-summary span {
cursor: help;
font-size: var(--fs-xs);
color: var(--text-muted);
}
.type-summary span strong {
color: var(--text-main);
font-size: 19px;
font-size: var(--fs-sm);
font-weight: 800;
}
.text-danger {
@@ -653,3 +208,166 @@
font-weight: 800;
}
/* --- Location View (Strict Zero-Scroll Layout) --- */
.location-view-wrapper {
display: flex;
flex-direction: column;
height: 100%; /* 부모(view-container)의 100% 강제 */
width: 100%;
background: var(--white);
overflow: hidden;
}
.location-filter-bar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 1.5rem;
border-bottom: 1px solid var(--border-color);
background: var(--white);
flex-shrink: 0;
}
.location-main-content {
flex: 1;
display: grid;
grid-template-columns: 2fr 1fr; /* Default: Very wide screens */
background: var(--white);
overflow: hidden;
align-items: stretch;
min-height: 0;
}
/* --- Responsive Layout for Location View --- */
@media (max-width: 1600px) {
.location-main-content {
grid-template-columns: 1.5fr 1fr; /* Normal Desktops */
}
}
@media (max-width: 1200px) {
.location-main-content {
grid-template-columns: 1.2fr 1fr; /* Tablets / Small Laptops */
}
}
@media (max-width: 768px) {
.location-main-content {
grid-template-columns: 1fr;
grid-template-rows: auto 1fr; /* Stacked on mobile */
overflow-y: auto;
}
.map-container-section {
border-right: none;
border-bottom: 1px solid var(--border-color);
height: 350px;
}
}
.map-container-section {
position: relative;
overflow: hidden;
border-right: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: center;
background: #f1f5f9;
height: 100%;
}
.map-frame-wrapper {
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.map-image {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
object-fit: contain; /* 공간에 맞춰 자동 축소, 절대 넘치지 않음 */
display: block;
}
.map-overlay {
position: absolute;
pointer-events: none;
}
.asset-list-section {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
background: var(--white);
}
.section-header {
padding: 1rem 1.25rem;
border-bottom: 1px solid var(--border-color);
background: #f8fafc;
flex-shrink: 0;
}
.mini-table-wrapper {
flex: 1;
overflow-y: auto;
min-height: 0;
}
/* --- Asset Details (Refined Typography) --- */
.asset-detail-sidebar {
padding: 1rem 0;
height: 100%;
overflow-y: auto;
}
.detail-section {
margin-bottom: 24px;
padding: 0 1.25rem;
}
.detail-section-title {
font-size: var(--fs-xs);
font-weight: 800;
color: var(--primary-color);
border-bottom: 1px solid var(--border-color);
padding-bottom: 4px;
margin-bottom: 12px;
text-transform: uppercase;
}
.detail-grid-2col {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px 16px;
}
.detail-item.full-width {
grid-column: span 2;
}
.detail-label-sm {
font-size: var(--fs-xs);
color: var(--text-muted);
font-weight: 700;
}
.detail-value-lg {
font-size: var(--fs-base);
color: var(--text-main);
font-weight: 600;
line-height: 1.3;
}
.asset-code-title {
font-size: var(--fs-md);
font-weight: 900;
color: var(--text-main);
}