668 lines
15 KiB
CSS
668 lines
15 KiB
CSS
:root {
|
|
/* --- Vercel Stark Palette --- */
|
|
--primary: #171717;
|
|
--on-primary: #ffffff;
|
|
--body: #4d4d4d;
|
|
--mute: #71717a;
|
|
--hairline: #ebebeb;
|
|
--hairline-strong: #a1a1a1;
|
|
--canvas: #ffffff;
|
|
--canvas-soft: #fafafa;
|
|
--canvas-soft-2: #f5f5f5;
|
|
|
|
/* --- Brand Accents --- */
|
|
--color-blue: #0070f3;
|
|
--color-cyan: #50e3c2;
|
|
--color-pink: #ff0080;
|
|
--color-violet: #7928ca;
|
|
--color-orange: #f5a623;
|
|
|
|
/* --- Semantic Alignment --- */
|
|
--primary-color: var(--primary);
|
|
--primary-hover: #000000;
|
|
--primary-light: var(--canvas-soft-2);
|
|
--text-main: var(--primary);
|
|
--text-muted: var(--body);
|
|
--border-color: var(--hairline);
|
|
--bg-color: var(--canvas-soft);
|
|
--bg-light: var(--canvas-soft-2);
|
|
--white: #FFFFFF;
|
|
--danger: #ee0000;
|
|
--success: #0070f3;
|
|
--header-height: 64px;
|
|
|
|
/* --- Global Typography Scale (No Upper Limit) --- */
|
|
--fs-xs: max(10px, 1vmin + 0.1vw);
|
|
--fs-sm: max(12px, 1.2vmin + 0.2vw);
|
|
--fs-base: max(13px, 1.4vmin + 0.2vw);
|
|
--fs-md: max(16px, 2vmin + 0.3vw);
|
|
--fs-lg: max(20px, 3vmin + 0.4vw);
|
|
--fs-xl: max(28px, 5vmin + 0.6vw);
|
|
|
|
/* --- Layout Units --- */
|
|
--header-height: 64px;
|
|
--spacing-base: 1.5rem;
|
|
--radius-base: 8px;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Pretendard Variable', 'Pretendard', -apple-system, sans-serif;
|
|
color: var(--text-main);
|
|
background-color: var(--bg-color);
|
|
line-height: 1.5;
|
|
font-size: var(--fs-base);
|
|
height: 100vh;
|
|
width: 100vw;
|
|
overflow: hidden;
|
|
-webkit-font-smoothing: antialiased;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
input, textarea {
|
|
-webkit-user-select: text;
|
|
-moz-user-select: text;
|
|
-ms-user-select: text;
|
|
user-select: text;
|
|
}
|
|
|
|
.app-layout {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* --- Header --- */
|
|
.main-header {
|
|
background-color: var(--canvas);
|
|
border-bottom: 1px solid var(--border-color);
|
|
z-index: 100;
|
|
height: var(--header-height);
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 1.5rem;
|
|
}
|
|
|
|
.header-container {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.brand { display: flex; align-items: center; gap: 0.75rem; }
|
|
.main-logo { height: clamp(28px, 4vmin, 40px); width: auto; }
|
|
.brand h1 { font-size: clamp(0.85rem, 1.4vmin, 1.05rem); font-weight: 600; color: var(--text-main); }
|
|
|
|
.integrated-nav { flex: 1; display: flex; align-items: center; margin-left: 2rem; gap: 0.5rem; }
|
|
.gnb-trigger {
|
|
font-size: var(--fs-xs);
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
padding: 0.4rem 0.75rem;
|
|
cursor: pointer;
|
|
border-radius: 9999px;
|
|
transition: all 0.2s;
|
|
}
|
|
.gnb-trigger:hover { color: var(--text-main); background: var(--canvas-soft-2); }
|
|
.gnb-trigger.active { color: var(--text-main); font-weight: 600; background: var(--canvas-soft-2); }
|
|
|
|
/* --- Layout Content --- */
|
|
.content-area {
|
|
flex: 1;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.view-container {
|
|
flex: 1;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.view-content-wrapper {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
width: 100%;
|
|
}
|
|
|
|
/* --- View Toggle (Vercel Tab Style) --- */
|
|
.view-toggle {
|
|
display: inline-flex;
|
|
background: var(--canvas-soft-2);
|
|
padding: 0.2rem;
|
|
border: 1px solid var(--hairline);
|
|
gap: 0.1rem;
|
|
border-radius: var(--radius-base);
|
|
}
|
|
|
|
.toggle-btn {
|
|
padding: 0.35rem 1rem;
|
|
border: none;
|
|
background: transparent;
|
|
font-size: var(--fs-xs);
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
transition: all 0.1s;
|
|
border-radius: calc(var(--radius-base) - 2px);
|
|
}
|
|
|
|
.toggle-btn:hover { color: var(--text-main); }
|
|
.toggle-btn.active {
|
|
background: var(--canvas);
|
|
color: var(--text-main);
|
|
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* --- Role Toggle Switch --- */
|
|
.role-toggle-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
background: var(--canvas-soft-2);
|
|
padding: 0.35rem 0.75rem;
|
|
border-radius: 9999px;
|
|
border: 1px solid var(--hairline);
|
|
}
|
|
|
|
.role-label {
|
|
font-size: var(--fs-xs);
|
|
font-weight: 500;
|
|
color: var(--mute);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.role-label.active {
|
|
color: var(--primary);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.role-toggle {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 40px;
|
|
height: 20px;
|
|
}
|
|
|
|
.role-toggle input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.role-slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: var(--hairline-strong);
|
|
transition: .4s;
|
|
border-radius: 20px;
|
|
}
|
|
|
|
.role-slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 16px;
|
|
width: 16px;
|
|
left: 2px;
|
|
bottom: 2px;
|
|
background-color: white;
|
|
transition: .4s;
|
|
border-radius: 50%;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
input:checked + .role-slider {
|
|
background-color: var(--primary);
|
|
}
|
|
|
|
input:checked + .role-slider:before {
|
|
transform: translateX(20px);
|
|
}
|
|
|
|
/* --- Utility Styles (The Standard) --- */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.4rem;
|
|
padding: 0 1.25rem;
|
|
font-size: var(--fs-xs);
|
|
font-weight: 500;
|
|
border-radius: 9999px;
|
|
cursor: pointer;
|
|
height: clamp(32px, 4.5vmin, 44px);
|
|
transition: all 0.2s;
|
|
border: 1px solid transparent;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn-primary { background-color: var(--primary); color: var(--on-primary); }
|
|
.btn-primary:hover { background-color: #000; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
|
|
|
|
.btn-outline { background-color: var(--canvas); color: var(--text-main); border: 1px solid var(--hairline); }
|
|
.btn-outline:hover { border-color: var(--hairline-strong); background: var(--canvas-soft); }
|
|
|
|
.btn-sm { height: clamp(28px, 3.5vmin, 36px); padding: 0 1rem; font-size: var(--fs-xs); }
|
|
.btn-danger { color: var(--danger) !important; border-color: var(--danger) !important; }
|
|
|
|
/* --- Form Elements --- */
|
|
.form-select-sm {
|
|
height: clamp(28px, 3.5vmin, 36px);
|
|
padding: 0 0.5rem;
|
|
border: 1px solid var(--hairline);
|
|
border-radius: 6px;
|
|
font-size: var(--fs-xs);
|
|
outline: none;
|
|
background-color: var(--canvas);
|
|
color: var(--primary);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.form-select-sm:focus {
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 2px 8px;
|
|
border-radius: 9999px;
|
|
font-size: var(--fs-xs);
|
|
font-weight: 600;
|
|
}
|
|
.badge-primary { background-color: var(--primary); color: var(--on-primary); }
|
|
.badge.b-green { background-color: #e6f4ea; color: #137333; } /* 운영/중급 */
|
|
.badge.b-yellow { background-color: #fffbeb; color: #b45309; } /* 재고/보급 */
|
|
.badge.b-purple { background-color: #f3e8ff; color: #6b21a8; } /* 수리/최상급 */
|
|
.badge.b-primary { background-color: #e0e7ff; color: #3730a3; } /* GNB/상급 */
|
|
.badge.badge-danger { background-color: #fce8e6; color: #c5221f; } /* 폐기/교체대상 */
|
|
.badge.badge-muted { background-color: #f1f3f4; color: #5f6368; } /* 폐기 */
|
|
.badge.badge-light { background-color: var(--canvas-soft-2); color: var(--mute); border: 1px solid var(--hairline); } /* 재고기본 */
|
|
|
|
/* --- Form Elements Extra --- */
|
|
.input-with-icon {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.input-with-icon input {
|
|
padding-left: 2.5rem !important;
|
|
}
|
|
|
|
.input-with-icon i,
|
|
.input-with-icon .icon-sm {
|
|
position: absolute;
|
|
left: 12px;
|
|
width: 16px;
|
|
height: 16px;
|
|
color: var(--mute);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.autocomplete-list {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
max-height: 250px;
|
|
overflow-y: auto;
|
|
background: var(--canvas);
|
|
border: 1px solid var(--hairline);
|
|
border-radius: 6px;
|
|
box-shadow: 0 12px 30px rgba(0,0,0,0.12);
|
|
z-index: 1100;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.autocomplete-item {
|
|
padding: 10px 12px;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid var(--hairline-soft, #f5f5f5);
|
|
transition: background 0.1s;
|
|
}
|
|
|
|
.autocomplete-item:hover {
|
|
background: var(--canvas-soft-2);
|
|
}
|
|
|
|
.autocomplete-item-empty {
|
|
padding: 1rem;
|
|
color: var(--mute);
|
|
font-size: var(--fs-xs);
|
|
text-align: center;
|
|
}
|
|
|
|
.suggestion-name {
|
|
font-weight: 600;
|
|
font-size: var(--fs-xs);
|
|
color: var(--primary);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.suggestion-meta {
|
|
font-size: var(--fs-xs);
|
|
color: var(--mute);
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* --- Summary & Selection Cards --- */
|
|
.summary-info-card {
|
|
padding: 1.25rem;
|
|
background: var(--canvas-soft);
|
|
border: 1px solid var(--hairline);
|
|
border-radius: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.user-pc-selection-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
max-height: 250px;
|
|
overflow-y: auto;
|
|
padding-right: 4px;
|
|
}
|
|
|
|
.user-pc-item {
|
|
padding: 12px;
|
|
border: 1px solid var(--hairline);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
background: var(--canvas);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.user-pc-item:hover {
|
|
border-color: var(--hairline-strong);
|
|
background: var(--canvas-soft);
|
|
}
|
|
|
|
.user-pc-item.selected {
|
|
border-color: var(--primary);
|
|
background: var(--primary-light);
|
|
}
|
|
|
|
.pc-item-code {
|
|
font-weight: 700;
|
|
font-size: var(--fs-xs);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.pc-item-meta {
|
|
font-size: var(--fs-xs);
|
|
color: var(--mute);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.empty-list-message {
|
|
font-size: var(--fs-xs);
|
|
color: var(--mute);
|
|
padding: 1rem 0;
|
|
text-align: center;
|
|
}
|
|
|
|
/* --- Global Utilities --- */
|
|
.hidden { display: none !important; }
|
|
.clickable { cursor: pointer; transition: opacity 0.2s; }
|
|
.clickable:hover { opacity: 0.8; }
|
|
|
|
/* Flexbox & Grid Utilities */
|
|
.flex { display: flex; }
|
|
.flex-col { display: flex; flex-direction: column; }
|
|
.flex-row { display: flex; flex-direction: row; }
|
|
.items-center { align-items: center; }
|
|
.justify-between { justify-content: space-between; }
|
|
.justify-center { justify-content: center; }
|
|
.gap-1 { gap: 0.25rem; }
|
|
.gap-2 { gap: 0.5rem; }
|
|
.gap-3 { gap: 0.75rem; }
|
|
.gap-4 { gap: 1rem; }
|
|
.gap-6 { gap: 1.5rem; }
|
|
.gap-y-3 { row-gap: 0.75rem; }
|
|
.gap-x-4 { column-gap: 1rem; }
|
|
.mb-0 { margin-bottom: 0 !important; }
|
|
.mb-4 { margin-bottom: 1rem !important; }
|
|
.mb-6 { margin-bottom: 1.5rem !important; }
|
|
.pb-4 { padding-bottom: 1rem !important; }
|
|
.p-4 { padding: 1rem !important; }
|
|
.p-2 { padding: 0.5rem !important; }
|
|
.p-8 { padding: 2rem !important; }
|
|
.ml-auto { margin-left: auto !important; }
|
|
.self-end { align-self: flex-end !important; }
|
|
.font-medium { font-weight: 500; }
|
|
.text-muted { color: var(--mute) !important; }
|
|
.mt-12 { margin-top: 3rem !important; }
|
|
.icon-sm { width: 16px; height: 16px; }
|
|
.h-90vh { height: 90vh !important; }
|
|
.pt-0 { padding-top: 0 !important; }
|
|
.font-semibold { font-weight: 600; }
|
|
|
|
|
|
|
|
.w-full { width: 100%; }
|
|
.h-full { height: 100%; }
|
|
|
|
/* Text Utilities */
|
|
.text-center { text-align: center !important; }
|
|
.text-right { text-align: right !important; }
|
|
.text-left { text-align: left !important; }
|
|
.font-bold { font-weight: 700; }
|
|
.bg-primary-light { background-color: var(--primary-light) !important; }
|
|
.text-success { color: var(--success) !important; }
|
|
.text-danger { color: var(--danger) !important; }
|
|
.text-blue { color: var(--color-blue) !important; }
|
|
.text-orange { color: var(--color-orange) !important; }
|
|
/* --- Unified Search & Filter Bar --- */
|
|
.search-bar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--spacing-base);
|
|
padding: 1.25rem var(--spacing-base);
|
|
border-bottom: 1px solid var(--hairline);
|
|
align-items: flex-end;
|
|
background: var(--canvas);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.search-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.search-item.flex-1 {
|
|
flex: 1;
|
|
min-width: 300px;
|
|
}
|
|
|
|
.search-item label {
|
|
font-size: var(--fs-xs);
|
|
font-weight: 600;
|
|
color: var(--mute);
|
|
text-transform: uppercase;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.search-item input,
|
|
.search-item select {
|
|
height: clamp(34px, 4.5vmin, 44px);
|
|
padding: 0 0.75rem;
|
|
border: 1px solid var(--hairline);
|
|
border-radius: 6px;
|
|
font-size: var(--fs-sm);
|
|
outline: none;
|
|
background-color: var(--canvas);
|
|
color: var(--primary);
|
|
transition: border-color 0.2s;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.search-item select {
|
|
cursor: pointer;
|
|
min-width: 120px;
|
|
}
|
|
|
|
.search-item input:focus,
|
|
.search-item select:focus {
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.header-action-group {
|
|
margin-left: auto;
|
|
align-self: flex-end;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.list-view-toggle-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
color: var(--primary);
|
|
height: clamp(34px, 4.5vmin, 44px);
|
|
padding: 0 0.5rem;
|
|
font-size: var(--fs-sm);
|
|
user-select: none;
|
|
}
|
|
|
|
.list-view-toggle-label input[type="checkbox"] {
|
|
width: 16px;
|
|
height: 16px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.map-pagination-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
margin-left: 0.5rem;
|
|
padding-left: 1rem;
|
|
border-left: 1px solid var(--hairline);
|
|
height: clamp(34px, 4.5vmin, 44px);
|
|
}
|
|
|
|
.page-info {
|
|
font-size: var(--fs-xs);
|
|
color: var(--mute);
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
|
|
/* --- Modal & View Header Layouts --- */
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* --- Asset Identity & Header Styling (Global) --- */
|
|
.header-identity {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex: 1;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.asset-code-title {
|
|
font-size: var(--fs-md);
|
|
font-weight: 600;
|
|
color: var(--primary);
|
|
letter-spacing: -0.02em;
|
|
line-height: 1;
|
|
}
|
|
|
|
.service-type-badge {
|
|
font-size: var(--fs-xs);
|
|
font-weight: 600;
|
|
color: var(--on-primary);
|
|
background: var(--primary);
|
|
padding: 4px 8px;
|
|
border-radius: 9999px;
|
|
text-transform: uppercase;
|
|
line-height: 1;
|
|
}
|
|
|
|
.asset-type-label {
|
|
font-size: var(--fs-sm);
|
|
font-weight: 500;
|
|
color: var(--mute);
|
|
line-height: 1;
|
|
}
|
|
|
|
.main-footer {
|
|
border-top: 1px solid var(--border-color);
|
|
background-color: var(--canvas);
|
|
color: var(--mute);
|
|
padding: 1rem 2rem;
|
|
text-align: right;
|
|
font-size: var(--fs-xs);
|
|
flex-shrink: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
.main-footer p {
|
|
margin: 0;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
/* --- Filter Bar Unified Layout Refactoring --- */
|
|
.search-item.keyword-search {
|
|
flex: 0 0 320px;
|
|
}
|
|
|
|
.search-item.result-count-item {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.result-count-box {
|
|
height: clamp(34px, 4.5vmin, 44px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-sizing: border-box;
|
|
min-width: 60px;
|
|
}
|
|
|
|
.result-count-text {
|
|
white-space: nowrap;
|
|
color: var(--color-blue);
|
|
font-size: var(--fs-sm);
|
|
font-weight: 700;
|
|
}
|
|
|