- 상세 정보 섹션을 2열 그리드로 변경하여 정보 밀도 향상\n- 항목 제목(12px) 및 내용(14px) 폰트 크기 조정\n- 인라인 스타일을 dashboard.css로 이전 및 중앙 집중화\n- 불필요한 아이콘 제거 및 UI 정돈
381 lines
6.6 KiB
CSS
381 lines
6.6 KiB
CSS
/* --- Dashboard View Specific Styles --- */
|
|
|
|
.dashboard-section-title {
|
|
padding: 0 0 1rem 0;
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.dashboard-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
gap: 1.5rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.stat-card {
|
|
background-color: var(--white);
|
|
padding: 1.5rem;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.stat-card .title {
|
|
font-size: 0.875rem;
|
|
color: var(--text-muted);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.stat-card .value {
|
|
font-size: 2.2rem;
|
|
font-weight: 800;
|
|
color: var(--primary-color);
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.dashboard-layout-2col {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.dashboard-card {
|
|
background-color: var(--white);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 1.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 360px;
|
|
}
|
|
|
|
.dashboard-card canvas {
|
|
flex: 1;
|
|
width: 100% !important;
|
|
max-height: 280px;
|
|
}
|
|
|
|
/* --- 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.125rem;
|
|
font-weight: 700;
|
|
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: 0.75rem;
|
|
font-weight: 600;
|
|
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: 0.8125rem;
|
|
font-weight: 600;
|
|
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: 0.8125rem;
|
|
font-weight: 700;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.filter-group select {
|
|
padding: 0.4rem 0.75rem;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
font-size: 0.8125rem;
|
|
color: var(--text-main);
|
|
background: var(--white);
|
|
min-width: 140px;
|
|
}
|
|
|
|
.map-pagination {
|
|
margin-left: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.page-info {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.page-btns button {
|
|
padding: 0.3rem 0.75rem;
|
|
border: 1px solid var(--border-color);
|
|
background: var(--white);
|
|
border-radius: 4px;
|
|
font-size: 0.75rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.page-btns button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.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.65rem;
|
|
font-weight: 800;
|
|
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: 0.9375rem;
|
|
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: 0.75rem;
|
|
font-weight: 700;
|
|
color: var(--text-muted);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.compact-table td {
|
|
padding: 0.75rem 1rem;
|
|
font-size: 0.8125rem;
|
|
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: 13px;
|
|
font-weight: 700;
|
|
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: 12px;
|
|
color: var(--text-muted);
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.detail-value {
|
|
font-size: 14px;
|
|
color: var(--text-main);
|
|
font-weight: 500;
|
|
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: 0.95rem;
|
|
font-weight: 700;
|
|
}
|