merge: merge origin/main into HW_Dashboard and resolve conflicts

This commit is contained in:
2026-06-11 11:39:09 +09:00
25 changed files with 1972 additions and 217 deletions

View File

@@ -170,6 +170,26 @@
cursor: not-allowed;
}
.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;
}
.slider-indicator {
font-weight: 700;
color: var(--text-muted);
@@ -198,3 +218,305 @@
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.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;
}
.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;
>>>>>>> origin/main
}

View File

@@ -379,16 +379,21 @@
flex: 1;
overflow-y: auto;
max-height: 500px;
padding-right: 0.5rem;
padding-right: 8px;
margin-top: 8px;
}
.history-item {
position: relative;
padding-left: 1.25rem;
padding-bottom: 1.5rem;
padding-left: 20px;
padding-bottom: 20px;
border-left: 2px solid var(--border-color);
}
.history-item:last-child {
border-left: 2px solid transparent;
}
.history-item::before {
content: '';
position: absolute;
@@ -399,34 +404,68 @@
border-radius: 50%;
background-color: var(--white);
border: 2px solid var(--primary-color);
z-index: 1;
}
.history-item:last-child {
border-left: 2px solid transparent;
/* Event Specific Markers */
.history-item.evt-dept::before { border-color: #3b82f6; }
.history-item.evt-user::before { border-color: #8b5cf6; }
.history-item.evt-role::before { border-color: #10b981; }
.history-item.evt-status::before { border-color: #f59e0b; }
.history-header-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 4px;
}
.history-date {
font-size: 1.05rem;
font-size: 11px;
color: var(--text-muted);
font-weight: 500;
margin-bottom: 0.25rem;
}
.history-tag {
font-size: 10px;
font-weight: 700;
padding: 2px 6px;
border-radius: 10px;
text-transform: uppercase;
}
.tag-dept { background: #eff6ff; color: #3b82f6; }
.tag-user { background: #f5f3ff; color: #8b5cf6; }
.tag-role { background: #ecfdf5; color: #10b981; }
.tag-status { background: #fffbeb; color: #f59e0b; }
.tag-default { background: #f3f4f6; color: #6b7280; }
.history-user {
font-size: 1.05rem;
font-size: 11px;
font-weight: 600;
color: var(--primary-color);
margin-bottom: 0.25rem;
color: var(--text-main);
margin-bottom: 6px;
display: block;
}
.history-details {
font-size: 1.1rem;
font-size: 12.5px;
color: var(--text-main);
line-height: 1.4;
white-space: pre-wrap;
line-height: 1.5;
background: #f8fafc;
padding: 8px 10px;
border-radius: 6px;
border: 1px solid #f1f5f9;
word-break: break-all;
}
.history-arrow {
display: inline-block;
margin: 0 4px;
color: var(--text-muted);
font-weight: 400;
}
.empty-history {
padding: 2rem 0;
text-align: center;
@@ -691,3 +730,100 @@
.location-detail-container select {
flex: 1;
}
/* Dynamic Remote Info Row */
.remote-info-row {
display: flex;
flex-direction: column;
gap: 8px;
padding: 8px 0;
border-bottom: 1px dashed var(--border-color);
}
.remote-info-row:last-child {
border-bottom: none;
}
.ri-line {
display: flex;
gap: 8px;
align-items: center;
}
.ri-line select,
.ri-line input {
height: 38px;
box-sizing: border-box;
font-size: 13px;
padding: 0 10px;
border: 1px solid var(--border-color);
border-radius: 4px;
outline: none;
background-color: var(--white);
color: var(--text-main);
transition: border-color 0.2s;
}
.ri-line select:disabled,
.ri-line input[readonly] {
background-color: var(--bg-muted);
border-color: transparent;
cursor: default;
}
.ri-line select:focus,
.ri-line input:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 2px rgba(30, 81, 73, 0.1);
}
.ri-type, .ri-tool {
width: 110px;
flex-shrink: 0;
}
.ri-val1, .ri-id, .ri-pw {
flex: 1;
min-width: 0;
}
.ri-remove-btn {
height: 38px;
width: 38px;
padding: 0;
color: #E11D48;
border: 1px solid #E11D48;
background: transparent;
border-radius: 4px;
cursor: pointer;
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 18px;
transition: all 0.2s;
}
.ri-remove-btn:hover {
background-color: #FFF1F2;
}
.ri-spacer {
width: 46px; /* 38px btn + 8px gap */
flex-shrink: 0;
}
.ri-connector {
width: 24px;
height: 24px;
border-left: 1.5px solid #94a3b8;
border-bottom: 1.5px solid #94a3b8;
margin-top: -24px;
margin-left: 12px;
border-bottom-left-radius: 6px;
flex-shrink: 0;
}
.ri-cred-line {
margin-top: -4px;
}