All checks were successful
Deploy to Production / deploy (push) Successful in 1m7s
- PATCH /api/admin/tenants/{tenant_id}/digital-twin endpoint
- update_tenant() supports digital_twin_company_id param
- Home page mapping modal with set/clear functionality
- Settings gear on tenant cards (superadmin only, visible on hover)
- Tenant type includes digital_twin_company_id field
3069 lines
55 KiB
CSS
3069 lines
55 KiB
CSS
/* ===== Material Design 3 — FactoryOps v2 ===== */
|
|
|
|
:root {
|
|
/* Primary */
|
|
--md-primary: #1a73e8;
|
|
--md-primary-dark: #1557b0;
|
|
--md-on-primary: #ffffff;
|
|
--md-primary-container: #d3e3fd;
|
|
--md-on-primary-container: #041e49;
|
|
|
|
/* Surface Tones (M3) */
|
|
--md-surface: #ffffff;
|
|
--md-surface-dim: #ddd8d3;
|
|
--md-surface-bright: #fdf8f3;
|
|
--md-surface-container-lowest: #ffffff;
|
|
--md-surface-container-low: #f8f9fa;
|
|
--md-surface-container: #f1f3f4;
|
|
--md-surface-container-high: #e8eaed;
|
|
--md-surface-container-highest: #dadce0;
|
|
--md-surface-variant: #e1e3e1;
|
|
--md-on-surface: #1f1f1f;
|
|
--md-on-surface-secondary: #444746;
|
|
--md-on-surface-variant: #5f6368;
|
|
|
|
/* Outline */
|
|
--md-outline: #747775;
|
|
--md-outline-variant: #c4c7c5;
|
|
|
|
/* Semantic */
|
|
--md-success: #1e8e3e;
|
|
--md-error: #d93025;
|
|
--md-warning: #f9ab00;
|
|
--md-info: #1a73e8;
|
|
|
|
/* Elevation */
|
|
--md-elevation-1: 0 1px 2px rgba(0,0,0,0.3), 0 1px 3px 1px rgba(0,0,0,0.15);
|
|
--md-elevation-2: 0 1px 2px rgba(0,0,0,0.3), 0 2px 6px 2px rgba(0,0,0,0.15);
|
|
--md-elevation-3: 0 4px 8px 3px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.3);
|
|
|
|
/* Shape */
|
|
--md-radius-xs: 4px;
|
|
--md-radius-sm: 8px;
|
|
--md-radius: 12px;
|
|
--md-radius-lg: 16px;
|
|
--md-radius-xl: 28px;
|
|
--md-radius-full: 9999px;
|
|
|
|
/* Motion */
|
|
--md-motion-standard: 300ms cubic-bezier(0.2, 0, 0, 1);
|
|
--md-motion-emphasized: 500ms cubic-bezier(0.2, 0, 0, 1);
|
|
--md-motion-quick: 150ms cubic-bezier(0.2, 0, 0, 1);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
html, body {
|
|
max-width: 100vw;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
|
|
color: var(--md-on-surface);
|
|
background: var(--md-surface-container-low);
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
line-height: 1.5;
|
|
letter-spacing: 0.01em;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.material-symbols-outlined {
|
|
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
}
|
|
|
|
@keyframes spin {
|
|
from { transform: rotate(0deg); }
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.spinning {
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
/* ===== Loading States ===== */
|
|
.loading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 48px;
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
.loading .material-symbols-outlined {
|
|
font-size: 36px;
|
|
}
|
|
|
|
.auth-loading {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--md-surface-container-low);
|
|
}
|
|
|
|
.auth-loading .material-symbols-outlined {
|
|
font-size: 48px;
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
/* ===== Card ===== */
|
|
.card {
|
|
background: var(--md-surface);
|
|
border-radius: var(--md-radius-lg);
|
|
box-shadow: var(--md-elevation-1);
|
|
overflow: hidden;
|
|
transition: box-shadow var(--md-motion-standard);
|
|
}
|
|
|
|
.card:hover {
|
|
box-shadow: var(--md-elevation-2);
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 16px 24px;
|
|
background: var(--md-surface-container-low);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--md-on-surface);
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.card-header .material-symbols-outlined {
|
|
font-size: 20px;
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
.card-body {
|
|
padding: 20px 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
/* ===== Buttons ===== */
|
|
.btn-primary {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 24px;
|
|
background: var(--md-primary);
|
|
color: var(--md-on-primary);
|
|
border: none;
|
|
border-radius: var(--md-radius-xl);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background var(--md-motion-quick), box-shadow var(--md-motion-quick);
|
|
position: relative;
|
|
overflow: hidden;
|
|
letter-spacing: 0.01em;
|
|
}
|
|
|
|
.btn-primary::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: currentColor;
|
|
opacity: 0;
|
|
transition: opacity var(--md-motion-quick);
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled)::after {
|
|
opacity: 0.08;
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
box-shadow: var(--md-elevation-1);
|
|
}
|
|
|
|
.btn-primary:active:not(:disabled)::after {
|
|
opacity: 0.12;
|
|
}
|
|
|
|
.btn-primary:disabled {
|
|
background: var(--md-surface-container-high);
|
|
color: var(--md-on-surface);
|
|
opacity: 0.38;
|
|
cursor: not-allowed;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.btn-primary .material-symbols-outlined {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.btn-outline {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 20px;
|
|
border: none;
|
|
border-radius: var(--md-radius-xl);
|
|
background: var(--md-primary-container);
|
|
color: var(--md-on-primary-container);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background var(--md-motion-quick), box-shadow var(--md-motion-quick);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.btn-outline::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: var(--md-on-primary-container);
|
|
opacity: 0;
|
|
transition: opacity var(--md-motion-quick);
|
|
}
|
|
|
|
.btn-outline:hover::after {
|
|
opacity: 0.08;
|
|
}
|
|
|
|
.btn-outline .material-symbols-outlined {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 6px 14px;
|
|
min-height: 36px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.btn-sm .material-symbols-outlined {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.btn-text {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: none;
|
|
border: none;
|
|
color: var(--md-primary);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
padding: 8px 12px;
|
|
min-height: 44px;
|
|
border-radius: var(--md-radius-xl);
|
|
transition: background var(--md-motion-quick);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.btn-text::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: var(--md-primary);
|
|
opacity: 0;
|
|
transition: opacity var(--md-motion-quick);
|
|
}
|
|
|
|
.btn-text:hover::after {
|
|
opacity: 0.08;
|
|
}
|
|
|
|
.btn-text .material-symbols-outlined {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.btn-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 40px;
|
|
height: 40px;
|
|
background: none;
|
|
border: none;
|
|
border-radius: var(--md-radius-full);
|
|
cursor: pointer;
|
|
color: var(--md-on-surface-variant);
|
|
transition: background var(--md-motion-quick), color var(--md-motion-quick);
|
|
}
|
|
|
|
.btn-icon:hover {
|
|
background: rgba(0, 0, 0, 0.06);
|
|
color: var(--md-on-surface);
|
|
}
|
|
|
|
.btn-icon .material-symbols-outlined {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.btn-icon-danger:hover {
|
|
background: rgba(217, 48, 37, 0.08);
|
|
color: var(--md-error);
|
|
}
|
|
|
|
.btn-danger {
|
|
color: var(--md-error);
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: rgba(217, 48, 37, 0.08);
|
|
}
|
|
|
|
/* ===== Empty States ===== */
|
|
.empty-message {
|
|
text-align: center;
|
|
padding: 40px;
|
|
color: var(--md-on-surface-variant);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding: 64px 24px;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.empty-state .material-symbols-outlined {
|
|
font-size: 56px;
|
|
opacity: 0.35;
|
|
}
|
|
|
|
.empty-state p {
|
|
font-size: 15px;
|
|
}
|
|
|
|
/* ===== Home / Tenant Selection ===== */
|
|
.home-container {
|
|
max-width: 960px;
|
|
margin: 0 auto;
|
|
padding: 40px 24px;
|
|
}
|
|
|
|
.home-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 36px;
|
|
}
|
|
|
|
.home-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.home-title .material-symbols-outlined {
|
|
font-size: 32px;
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
.home-title h1 {
|
|
font-size: 24px;
|
|
font-weight: 500;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.home-user {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
font-size: 13px;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.tenant-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
.tenant-card {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 28px 20px;
|
|
border-radius: var(--md-radius-lg);
|
|
background: var(--md-surface);
|
|
box-shadow: var(--md-elevation-1);
|
|
cursor: pointer;
|
|
transition: box-shadow var(--md-motion-standard), transform var(--md-motion-standard);
|
|
}
|
|
|
|
.tenant-card:hover {
|
|
box-shadow: var(--md-elevation-2);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.tenant-icon {
|
|
font-size: 36px;
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
.tenant-name {
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
color: var(--md-on-surface);
|
|
}
|
|
|
|
.tenant-id {
|
|
font-size: 12px;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.tenant-badge-dt {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-top: 4px;
|
|
padding: 3px 10px;
|
|
border-radius: 12px;
|
|
background: var(--md-primary-container);
|
|
color: var(--md-on-primary-container);
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.tenant-badge-dt .material-symbols-outlined {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.tenant-card-settings {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
border: none;
|
|
border-radius: var(--md-radius-full);
|
|
background: transparent;
|
|
color: var(--md-on-surface-variant);
|
|
cursor: pointer;
|
|
opacity: 0;
|
|
transition: opacity var(--md-motion-quick), background var(--md-motion-quick);
|
|
}
|
|
|
|
.tenant-card:hover .tenant-card-settings {
|
|
opacity: 1;
|
|
}
|
|
|
|
.tenant-card-settings:hover {
|
|
background: rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.tenant-card-settings .material-symbols-outlined {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.mapping-modal-tenant-name {
|
|
font-size: 14px;
|
|
color: var(--md-on-surface-variant);
|
|
margin-bottom: 4px;
|
|
padding: 0 24px;
|
|
}
|
|
|
|
/* ===== Login ===== */
|
|
.login-container {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--md-surface-container-low);
|
|
padding: 20px;
|
|
}
|
|
|
|
.login-card {
|
|
background: var(--md-surface);
|
|
border-radius: var(--md-radius-lg);
|
|
padding: 48px 40px;
|
|
width: 100%;
|
|
max-width: 420px;
|
|
box-shadow: var(--md-elevation-2);
|
|
}
|
|
|
|
.login-header {
|
|
text-align: center;
|
|
margin-bottom: 36px;
|
|
}
|
|
|
|
.login-icon {
|
|
font-size: 48px;
|
|
color: var(--md-primary);
|
|
margin-bottom: 16px;
|
|
display: block;
|
|
}
|
|
|
|
.login-header h1 {
|
|
font-size: 24px;
|
|
font-weight: 500;
|
|
margin: 0 0 8px 0;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.login-header p {
|
|
font-size: 14px;
|
|
color: var(--md-on-surface-variant);
|
|
margin: 0;
|
|
}
|
|
|
|
.login-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
}
|
|
|
|
.login-error {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px 16px;
|
|
background: rgba(217, 48, 37, 0.08);
|
|
border-radius: var(--md-radius);
|
|
color: var(--md-error);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.login-error .material-symbols-outlined {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.login-button {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 14px 24px;
|
|
background: var(--md-primary);
|
|
color: var(--md-on-primary);
|
|
border: none;
|
|
border-radius: var(--md-radius-xl);
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background var(--md-motion-quick), box-shadow var(--md-motion-quick);
|
|
margin-top: 4px;
|
|
letter-spacing: 0.01em;
|
|
}
|
|
|
|
.login-button:hover:not(:disabled) {
|
|
box-shadow: var(--md-elevation-1);
|
|
}
|
|
|
|
.login-button:disabled {
|
|
background: var(--md-surface-container-high);
|
|
color: var(--md-on-surface);
|
|
opacity: 0.38;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.login-button .material-symbols-outlined {
|
|
font-size: 18px;
|
|
}
|
|
|
|
/* ===== Toast / Snackbar ===== */
|
|
.toast-container {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
z-index: 1000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
.toast {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 14px 20px;
|
|
border-radius: var(--md-radius-sm);
|
|
box-shadow: var(--md-elevation-3);
|
|
min-width: 320px;
|
|
max-width: 520px;
|
|
animation: toast-in 0.3s ease;
|
|
}
|
|
|
|
.toast-success { background: #2d2d2d; color: #a8dab5; }
|
|
.toast-error { background: #2d2d2d; color: #f9a8a1; }
|
|
.toast-info { background: #2d2d2d; color: #a8c7fa; }
|
|
|
|
.toast-icon { font-size: 20px; }
|
|
.toast-message { flex: 1; font-size: 14px; color: #e3e3e3; }
|
|
|
|
.toast-close {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
color: inherit;
|
|
opacity: 0.6;
|
|
padding: 4px;
|
|
border-radius: var(--md-radius-full);
|
|
transition: opacity var(--md-motion-quick);
|
|
}
|
|
|
|
.toast-close:hover { opacity: 1; }
|
|
|
|
.toast-exit {
|
|
animation: toast-out 0.3s ease forwards;
|
|
}
|
|
|
|
@keyframes toast-in {
|
|
from { transform: translateY(24px); opacity: 0; }
|
|
to { transform: translateY(0); opacity: 1; }
|
|
}
|
|
|
|
@keyframes toast-out {
|
|
from { transform: translateY(0); opacity: 1; }
|
|
to { transform: translateY(24px); opacity: 0; }
|
|
}
|
|
|
|
/* ===== TopNav ===== */
|
|
.topnav {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 64px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 24px;
|
|
background: var(--md-surface);
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
|
|
z-index: 100;
|
|
}
|
|
|
|
.topnav-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.topnav-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 6px 8px;
|
|
min-height: 44px;
|
|
border-radius: var(--md-radius-sm);
|
|
color: var(--md-primary);
|
|
transition: background var(--md-motion-quick);
|
|
}
|
|
|
|
.topnav-brand:hover {
|
|
background: rgba(26, 115, 232, 0.06);
|
|
}
|
|
|
|
.topnav-brand .material-symbols-outlined {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.topnav-app-name {
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
color: var(--md-on-surface);
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.topnav-divider {
|
|
width: 1px;
|
|
height: 24px;
|
|
background: var(--md-outline-variant);
|
|
}
|
|
|
|
.topnav-tenant {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.topnav-center {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.topnav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 16px;
|
|
min-height: 44px;
|
|
background: none;
|
|
border: none;
|
|
border-radius: var(--md-radius-xl);
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--md-on-surface-variant);
|
|
transition: background var(--md-motion-quick), color var(--md-motion-quick);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.topnav-item::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: currentColor;
|
|
opacity: 0;
|
|
transition: opacity var(--md-motion-quick);
|
|
}
|
|
|
|
.topnav-item:hover::after {
|
|
opacity: 0.06;
|
|
}
|
|
|
|
.topnav-item:hover {
|
|
color: var(--md-on-surface);
|
|
}
|
|
|
|
.topnav-item.active {
|
|
background: var(--md-primary-container);
|
|
color: var(--md-on-primary-container);
|
|
}
|
|
|
|
.topnav-item.active::after {
|
|
opacity: 0;
|
|
}
|
|
|
|
.topnav-item .material-symbols-outlined {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.topnav-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.topnav-user {
|
|
font-size: 13px;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
/* ===== Tenant Layout ===== */
|
|
.tenant-layout {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.tenant-main {
|
|
padding-top: 64px;
|
|
}
|
|
|
|
/* ===== Page Common ===== */
|
|
.page-container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 28px 24px;
|
|
}
|
|
|
|
.page-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.page-header-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.page-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 22px;
|
|
font-weight: 500;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.page-title .material-symbols-outlined {
|
|
font-size: 28px;
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
.page-error {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
padding: 80px 20px;
|
|
color: var(--md-error);
|
|
}
|
|
|
|
.page-error .material-symbols-outlined {
|
|
font-size: 48px;
|
|
}
|
|
|
|
.page-error p {
|
|
font-size: 16px;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.page-breadcrumb {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
/* ===== Form Fields ===== */
|
|
.form-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.form-field label,
|
|
.form-label {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.form-field input {
|
|
padding: 14px 16px;
|
|
border: 1px solid var(--md-outline-variant);
|
|
border-radius: var(--md-radius);
|
|
background: var(--md-surface);
|
|
color: var(--md-on-surface);
|
|
font-size: 16px;
|
|
font-family: inherit;
|
|
transition: border-color var(--md-motion-quick);
|
|
outline: none;
|
|
}
|
|
|
|
.form-field input:focus {
|
|
border-color: var(--md-primary);
|
|
border-width: 2px;
|
|
padding: 13px 15px;
|
|
}
|
|
|
|
.form-field input::placeholder {
|
|
color: var(--md-on-surface-variant);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.form-field input:disabled {
|
|
background: var(--md-surface-container-high);
|
|
color: var(--md-on-surface);
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.form-field select {
|
|
padding: 14px 16px;
|
|
border: 1px solid var(--md-outline-variant);
|
|
border-radius: var(--md-radius);
|
|
background: var(--md-surface);
|
|
color: var(--md-on-surface);
|
|
font-size: 16px;
|
|
font-family: inherit;
|
|
transition: border-color var(--md-motion-quick);
|
|
outline: none;
|
|
width: 100%;
|
|
}
|
|
|
|
.form-field select:focus {
|
|
border-color: var(--md-primary);
|
|
border-width: 2px;
|
|
padding: 13px 15px;
|
|
}
|
|
|
|
.form-field select:disabled {
|
|
background: var(--md-surface-container-high);
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.form-field input[type="number"] {
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
.form-field input[type="number"]::-webkit-outer-spin-button,
|
|
.form-field input[type="number"]::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
|
|
.form-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 16px;
|
|
}
|
|
|
|
.form-row {
|
|
display: flex;
|
|
gap: 16px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.form-row > .form-field {
|
|
flex: 1;
|
|
}
|
|
|
|
/* ===== Machine Grid (Dashboard) ===== */
|
|
.machine-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
.machine-card {
|
|
background: var(--md-surface);
|
|
border-radius: var(--md-radius-lg);
|
|
overflow: hidden;
|
|
box-shadow: var(--md-elevation-1);
|
|
transition: box-shadow var(--md-motion-standard), transform var(--md-motion-standard);
|
|
}
|
|
|
|
.machine-card:hover {
|
|
box-shadow: var(--md-elevation-2);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.machine-card-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
padding: 20px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.machine-card-icon {
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
.machine-card-icon .material-symbols-outlined {
|
|
font-size: 32px;
|
|
}
|
|
|
|
.machine-card-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.machine-card-name {
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.machine-card-code {
|
|
font-size: 13px;
|
|
color: var(--md-on-surface-variant);
|
|
font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
|
|
}
|
|
|
|
.machine-card-model {
|
|
font-size: 12px;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.machine-card-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--md-outline-variant);
|
|
}
|
|
|
|
.machine-card-parts {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 12px;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.machine-card-parts .material-symbols-outlined {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.machine-card-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 4px;
|
|
padding: 8px 16px;
|
|
background: var(--md-surface-container-low);
|
|
}
|
|
|
|
/* ===== Detail Page ===== */
|
|
.detail-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 24px;
|
|
padding: 20px 24px;
|
|
background: var(--md-surface);
|
|
border-radius: var(--md-radius-lg);
|
|
box-shadow: var(--md-elevation-1);
|
|
}
|
|
|
|
.detail-header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.detail-icon {
|
|
font-size: 36px;
|
|
line-height: 1;
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
.detail-title {
|
|
font-size: 22px;
|
|
font-weight: 500;
|
|
margin: 0;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.detail-subtitle {
|
|
font-size: 14px;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
/* ===== Section ===== */
|
|
.section {
|
|
background: var(--md-surface);
|
|
border-radius: var(--md-radius-lg);
|
|
overflow: hidden;
|
|
box-shadow: var(--md-elevation-1);
|
|
}
|
|
|
|
.section + .section {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 24px;
|
|
background: var(--md-surface-container-low);
|
|
}
|
|
|
|
.section-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
margin: 0;
|
|
}
|
|
|
|
.section-title .material-symbols-outlined {
|
|
font-size: 20px;
|
|
line-height: 1;
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
/* ===== Part Table ===== */
|
|
.part-table-wrap {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.part-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.part-table th {
|
|
text-align: left;
|
|
padding: 12px 16px;
|
|
font-weight: 500;
|
|
color: var(--md-on-surface-variant);
|
|
background: var(--md-surface-container-low);
|
|
border-bottom: 1px solid var(--md-outline-variant);
|
|
white-space: nowrap;
|
|
font-size: 12px;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.part-table td {
|
|
padding: 14px 16px;
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.part-table tbody tr {
|
|
transition: background var(--md-motion-quick);
|
|
}
|
|
|
|
.part-table tbody tr:hover {
|
|
background: rgba(0, 0, 0, 0.02);
|
|
}
|
|
|
|
.part-table tbody tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.part-row-warning {
|
|
background: rgba(249, 171, 0, 0.06) !important;
|
|
}
|
|
|
|
.part-name-cell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.part-name-cell strong {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.part-number {
|
|
font-size: 11px;
|
|
color: var(--md-on-surface-variant);
|
|
font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
|
|
}
|
|
|
|
.part-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
}
|
|
|
|
/* ===== Percentage Bar ===== */
|
|
.pct-bar-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 100px;
|
|
}
|
|
|
|
.pct-bar {
|
|
height: 6px;
|
|
background: var(--md-primary);
|
|
border-radius: 3px;
|
|
transition: width var(--md-motion-standard);
|
|
}
|
|
|
|
.pct-bar-warning {
|
|
background: var(--md-warning);
|
|
}
|
|
|
|
.pct-label {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* ===== Modal ===== */
|
|
@keyframes modal-fade-in {
|
|
from { opacity: 0; transform: scale(0.95); }
|
|
to { opacity: 1; transform: scale(1); }
|
|
}
|
|
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.32);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 200;
|
|
padding: 20px;
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--md-surface);
|
|
border-radius: var(--md-radius-xl);
|
|
width: 100%;
|
|
max-width: 480px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
box-shadow: var(--md-elevation-3);
|
|
animation: modal-fade-in 200ms ease-out;
|
|
}
|
|
|
|
.modal-lg {
|
|
max-width: 640px;
|
|
}
|
|
|
|
.modal-sm {
|
|
max-width: 480px;
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 24px 24px 0;
|
|
}
|
|
|
|
.modal-header h3 {
|
|
font-size: 20px;
|
|
font-weight: 500;
|
|
margin: 0;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.modal-close {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
background: none;
|
|
border: none;
|
|
border-radius: var(--md-radius-full);
|
|
cursor: pointer;
|
|
color: var(--md-on-surface-variant);
|
|
transition: background var(--md-motion-quick);
|
|
}
|
|
|
|
.modal-close:hover {
|
|
background: rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
.modal-content form {
|
|
padding: 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
padding: 16px 24px 24px;
|
|
}
|
|
|
|
.modal-body-form {
|
|
padding: 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.modal-body-form .form-row {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.modal-body-form .form-row > .form-field {
|
|
min-width: 0;
|
|
flex: 1 1 140px;
|
|
}
|
|
|
|
/* ===== Tab Bar ===== */
|
|
.tab-bar {
|
|
display: flex;
|
|
gap: 4px;
|
|
margin-bottom: 24px;
|
|
padding: 4px;
|
|
background: var(--md-surface);
|
|
border-radius: var(--md-radius-lg);
|
|
width: fit-content;
|
|
box-shadow: var(--md-elevation-1);
|
|
}
|
|
|
|
.tab-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: var(--md-radius);
|
|
background: transparent;
|
|
color: var(--md-on-surface-variant);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background var(--md-motion-quick), color var(--md-motion-quick);
|
|
}
|
|
|
|
.tab-item:hover {
|
|
background: rgba(0, 0, 0, 0.04);
|
|
color: var(--md-on-surface);
|
|
}
|
|
|
|
.tab-item.active {
|
|
background: var(--md-primary-container);
|
|
color: var(--md-on-primary-container);
|
|
}
|
|
|
|
.tab-item .material-symbols-outlined {
|
|
font-size: 18px;
|
|
}
|
|
|
|
/* ===== Template Grid ===== */
|
|
.template-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
.template-card {
|
|
background: var(--md-surface);
|
|
border-radius: var(--md-radius-lg);
|
|
overflow: hidden;
|
|
box-shadow: var(--md-elevation-1);
|
|
transition: box-shadow var(--md-motion-standard), transform var(--md-motion-standard);
|
|
}
|
|
|
|
.template-card:hover {
|
|
box-shadow: var(--md-elevation-2);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.template-card-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
padding: 20px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.template-card-top {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.template-card-icon {
|
|
font-size: 28px;
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
.template-card-badges {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 3px 10px;
|
|
border-radius: var(--md-radius-sm);
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.badge-schedule {
|
|
background: rgba(26, 115, 232, 0.08);
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
.badge-mode {
|
|
background: rgba(30, 142, 62, 0.08);
|
|
color: var(--md-success);
|
|
}
|
|
|
|
.template-card-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.template-card-name {
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.template-card-meta {
|
|
font-size: 13px;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.template-card-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 4px;
|
|
padding: 8px 16px;
|
|
background: var(--md-surface-container-low);
|
|
}
|
|
|
|
/* ===== Radio / Checkbox ===== */
|
|
.radio-group {
|
|
display: flex;
|
|
gap: 16px;
|
|
padding-top: 4px;
|
|
}
|
|
|
|
.radio-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 14px;
|
|
color: var(--md-on-surface);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.radio-label input[type="radio"] {
|
|
accent-color: var(--md-primary);
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.checkbox-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 14px;
|
|
color: var(--md-on-surface);
|
|
cursor: pointer;
|
|
min-width: fit-content;
|
|
}
|
|
|
|
.checkbox-label input[type="checkbox"] {
|
|
accent-color: var(--md-primary);
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
/* ===== Items List (Template Editor) ===== */
|
|
.items-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.item-row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
padding: 16px;
|
|
background: var(--md-surface-container-low);
|
|
border-radius: var(--md-radius);
|
|
border: 1px solid var(--md-outline-variant);
|
|
}
|
|
|
|
.item-order {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 2px;
|
|
min-width: 32px;
|
|
}
|
|
|
|
.order-num {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.item-fields {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* ===== Form Actions ===== */
|
|
.form-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
padding-top: 12px;
|
|
}
|
|
|
|
/* ===== Inspection List ===== */
|
|
.inspection-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.inspection-card {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 20px;
|
|
background: var(--md-surface);
|
|
border-radius: var(--md-radius);
|
|
cursor: pointer;
|
|
box-shadow: var(--md-elevation-1);
|
|
transition: box-shadow var(--md-motion-quick), transform var(--md-motion-quick);
|
|
}
|
|
|
|
.inspection-card:hover {
|
|
box-shadow: var(--md-elevation-2);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.inspection-card-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.inspection-card-icon {
|
|
font-size: 24px;
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
.inspection-card-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.inspection-card-name {
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
color: var(--md-on-surface);
|
|
}
|
|
|
|
.inspection-card-meta {
|
|
font-size: 12px;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.inspection-card-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.inspection-card-progress {
|
|
font-size: 13px;
|
|
color: var(--md-on-surface-variant);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.badge-draft {
|
|
background: var(--md-surface-container);
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.badge-progress {
|
|
background: rgba(26, 115, 232, 0.08);
|
|
color: #1565c0;
|
|
}
|
|
|
|
.badge-completed {
|
|
background: rgba(30, 142, 62, 0.08);
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.badge-completed-lg {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 16px;
|
|
background: rgba(30, 142, 62, 0.08);
|
|
color: #2e7d32;
|
|
border-radius: var(--md-radius-xl);
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.badge-completed-lg .material-symbols-outlined {
|
|
font-size: 18px;
|
|
}
|
|
|
|
/* ===== Template Select Modal ===== */
|
|
.template-select-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.template-select-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 14px 16px;
|
|
border: 1px solid var(--md-outline-variant);
|
|
border-radius: var(--md-radius);
|
|
background: transparent;
|
|
cursor: pointer;
|
|
transition: background var(--md-motion-quick), border-color var(--md-motion-quick);
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
|
|
.template-select-item:hover {
|
|
background: rgba(26, 115, 232, 0.04);
|
|
border-color: var(--md-primary);
|
|
}
|
|
|
|
.template-select-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.template-select-name {
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.template-select-meta {
|
|
font-size: 12px;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.template-select-item .material-symbols-outlined {
|
|
color: var(--md-on-surface-variant);
|
|
font-size: 20px;
|
|
}
|
|
|
|
/* ===== Inspection Detail ===== */
|
|
.page-header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.page-header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.page-subtitle {
|
|
font-size: 13px;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.save-indicator {
|
|
font-size: 13px;
|
|
color: var(--md-on-surface-variant);
|
|
padding-right: 4px;
|
|
}
|
|
|
|
.inspection-notes {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
padding: 14px 16px;
|
|
background: rgba(249, 171, 0, 0.08);
|
|
border-radius: var(--md-radius);
|
|
font-size: 13px;
|
|
color: #e65100;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.inspection-notes .material-symbols-outlined {
|
|
font-size: 18px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.inspection-items {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.inspection-item-card {
|
|
border: 1px solid var(--md-outline-variant);
|
|
border-radius: var(--md-radius-lg);
|
|
padding: 16px 20px;
|
|
background: var(--md-surface);
|
|
transition: border-color var(--md-motion-quick), box-shadow var(--md-motion-quick);
|
|
}
|
|
|
|
.inspection-item-card.pass {
|
|
border-left: 4px solid #4caf50;
|
|
}
|
|
|
|
.inspection-item-card.fail {
|
|
border-left: 4px solid var(--md-error);
|
|
}
|
|
|
|
.inspection-item-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.inspection-item-number {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: var(--md-radius-full);
|
|
background: var(--md-primary);
|
|
color: var(--md-on-primary);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.inspection-item-name {
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.inspection-item-required {
|
|
font-size: 11px;
|
|
color: var(--md-error);
|
|
padding: 2px 8px;
|
|
border: 1px solid rgba(217, 48, 37, 0.3);
|
|
border-radius: var(--md-radius-xs);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.badge-category {
|
|
background: rgba(123, 31, 162, 0.08);
|
|
color: #7b1fa2;
|
|
}
|
|
|
|
.badge-pass {
|
|
background: rgba(46, 125, 50, 0.08);
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.badge-fail {
|
|
background: rgba(217, 48, 37, 0.08);
|
|
color: var(--md-error);
|
|
}
|
|
|
|
.inspection-item-body {
|
|
padding-left: 36px;
|
|
}
|
|
|
|
.inspection-input-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.inspection-input-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.inspection-input-group .form-input {
|
|
max-width: 200px;
|
|
}
|
|
|
|
.input-unit {
|
|
font-size: 13px;
|
|
color: var(--md-on-surface-variant);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.spec-range,
|
|
.warning-range {
|
|
font-size: 12px;
|
|
color: var(--md-on-surface-variant);
|
|
padding: 4px 10px;
|
|
background: var(--md-surface-container-low);
|
|
border-radius: var(--md-radius-sm);
|
|
}
|
|
|
|
.warning-range {
|
|
background: rgba(249, 171, 0, 0.08);
|
|
color: #f57f17;
|
|
}
|
|
|
|
.boolean-toggle {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.toggle-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 24px;
|
|
border: 1px solid var(--md-outline-variant);
|
|
border-radius: var(--md-radius-xl);
|
|
background: transparent;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
transition: background var(--md-motion-quick), border-color var(--md-motion-quick), color var(--md-motion-quick);
|
|
}
|
|
|
|
.toggle-btn:hover:not(:disabled) {
|
|
background: rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.toggle-btn:disabled {
|
|
opacity: 0.38;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.toggle-btn .material-symbols-outlined {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.toggle-pass.active {
|
|
background: rgba(76, 175, 80, 0.1);
|
|
border-color: #4caf50;
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.toggle-fail.active {
|
|
background: rgba(217, 48, 37, 0.1);
|
|
border-color: var(--md-error);
|
|
color: var(--md-error);
|
|
}
|
|
|
|
.form-textarea {
|
|
width: 100%;
|
|
min-height: 52px;
|
|
padding: 12px 16px;
|
|
border: 1px solid var(--md-outline-variant);
|
|
border-radius: var(--md-radius);
|
|
font-size: 14px;
|
|
resize: vertical;
|
|
font-family: inherit;
|
|
transition: border-color var(--md-motion-quick);
|
|
outline: none;
|
|
}
|
|
|
|
.form-textarea:focus {
|
|
border-color: var(--md-primary);
|
|
border-width: 2px;
|
|
padding: 11px 15px;
|
|
}
|
|
|
|
.form-textarea:disabled {
|
|
background: var(--md-surface-container-high);
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.form-select {
|
|
padding: 10px 14px;
|
|
border: 1px solid var(--md-outline-variant);
|
|
border-radius: var(--md-radius);
|
|
font-size: 14px;
|
|
background: var(--md-surface);
|
|
min-width: 200px;
|
|
font-family: inherit;
|
|
outline: none;
|
|
transition: border-color var(--md-motion-quick);
|
|
}
|
|
|
|
.form-select:focus {
|
|
border-color: var(--md-primary);
|
|
border-width: 2px;
|
|
padding: 9px 13px;
|
|
}
|
|
|
|
.form-select:disabled {
|
|
background: var(--md-surface-container-high);
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.form-input {
|
|
padding: 10px 14px;
|
|
border: 1px solid var(--md-outline-variant);
|
|
border-radius: var(--md-radius);
|
|
font-size: 14px;
|
|
background: var(--md-surface);
|
|
font-family: inherit;
|
|
outline: none;
|
|
transition: border-color var(--md-motion-quick);
|
|
}
|
|
|
|
.form-input:focus {
|
|
border-color: var(--md-primary);
|
|
border-width: 2px;
|
|
padding: 9px 13px;
|
|
}
|
|
|
|
.form-input:disabled {
|
|
background: var(--md-surface-container-high);
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* ===== Custom Select (inspection form) ===== */
|
|
.custom-select {
|
|
position: relative;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.custom-select-trigger {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
padding: 10px 14px;
|
|
border: 1px solid var(--md-outline-variant);
|
|
border-radius: var(--md-radius);
|
|
font-size: 14px;
|
|
background: var(--md-surface);
|
|
cursor: pointer;
|
|
text-align: left;
|
|
gap: 8px;
|
|
transition: border-color var(--md-motion-quick);
|
|
font-family: inherit;
|
|
}
|
|
|
|
.custom-select-trigger:hover:not(.disabled) {
|
|
border-color: var(--md-on-surface);
|
|
}
|
|
|
|
.custom-select-trigger:focus {
|
|
outline: none;
|
|
border-color: var(--md-primary);
|
|
border-width: 2px;
|
|
padding: 9px 13px;
|
|
}
|
|
|
|
.custom-select-trigger.disabled {
|
|
background: var(--md-surface-container-high);
|
|
cursor: not-allowed;
|
|
color: var(--md-on-surface-variant);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.custom-select-trigger .placeholder {
|
|
color: var(--md-on-surface-variant);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.custom-select-arrow {
|
|
font-size: 20px;
|
|
color: var(--md-on-surface-variant);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.custom-select-dropdown {
|
|
position: absolute;
|
|
top: calc(100% + 4px);
|
|
left: 0;
|
|
right: 0;
|
|
background: var(--md-surface);
|
|
border: 1px solid var(--md-outline-variant);
|
|
border-radius: var(--md-radius);
|
|
box-shadow: var(--md-elevation-2);
|
|
z-index: 100;
|
|
list-style: none;
|
|
padding: 4px 0;
|
|
margin: 0;
|
|
max-height: 240px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.custom-select-option {
|
|
padding: 10px 14px;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
transition: background var(--md-motion-quick);
|
|
border-radius: 0;
|
|
}
|
|
|
|
.custom-select-option:hover {
|
|
background: rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.custom-select-option.selected {
|
|
color: var(--md-primary);
|
|
font-weight: 500;
|
|
background: rgba(26, 115, 232, 0.08);
|
|
}
|
|
|
|
.complete-summary {
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
padding: 16px;
|
|
background: var(--md-surface-container-low);
|
|
border-radius: var(--md-radius);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
/* ===== Phase 5: Counter / Replace / History ===== */
|
|
.counter-modal-info {
|
|
padding: 16px 20px;
|
|
background: var(--md-surface-container-low);
|
|
border-radius: var(--md-radius);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.counter-part-name {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
margin-bottom: 12px;
|
|
color: var(--md-on-surface);
|
|
}
|
|
|
|
.counter-info-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 4px 0;
|
|
font-size: 14px;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.counter-info-row strong {
|
|
color: var(--md-on-surface);
|
|
}
|
|
|
|
.replace-warning {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
padding: 14px 16px;
|
|
background: rgba(230, 81, 0, 0.06);
|
|
border: 1px solid rgba(255, 183, 77, 0.4);
|
|
border-radius: var(--md-radius);
|
|
margin-bottom: 16px;
|
|
font-size: 14px;
|
|
color: #e65100;
|
|
}
|
|
|
|
.replace-warning .material-symbols-outlined {
|
|
font-size: 22px;
|
|
flex-shrink: 0;
|
|
margin-top: 1px;
|
|
}
|
|
|
|
.btn-warning {
|
|
background: #e65100 !important;
|
|
border-color: #e65100 !important;
|
|
}
|
|
|
|
.btn-warning:hover {
|
|
background: #bf360c !important;
|
|
}
|
|
|
|
.replacement-history {
|
|
min-height: 120px;
|
|
}
|
|
|
|
.history-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.history-table th {
|
|
text-align: left;
|
|
padding: 12px 16px;
|
|
background: var(--md-surface-container-low);
|
|
font-weight: 500;
|
|
font-size: 12px;
|
|
color: var(--md-on-surface-variant);
|
|
border-bottom: 1px solid var(--md-outline-variant);
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.history-table td {
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
|
|
color: var(--md-on-surface);
|
|
}
|
|
|
|
.history-table tbody tr {
|
|
transition: background var(--md-motion-quick);
|
|
}
|
|
|
|
.history-table tbody tr:hover {
|
|
background: rgba(0, 0, 0, 0.02);
|
|
}
|
|
|
|
.loading-sm {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 32px;
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
.empty-state-sm {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 32px;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.empty-state-sm .material-symbols-outlined {
|
|
font-size: 40px;
|
|
opacity: 0.35;
|
|
}
|
|
|
|
/* ===== Phase 6: Alarms ===== */
|
|
.alarm-summary-badges {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.alarm-badge {
|
|
padding: 4px 14px;
|
|
border-radius: var(--md-radius-xl);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.alarm-badge-critical {
|
|
background: rgba(217, 48, 37, 0.08);
|
|
color: var(--md-error);
|
|
}
|
|
|
|
.alarm-badge-warning {
|
|
background: rgba(230, 81, 0, 0.08);
|
|
color: #e65100;
|
|
}
|
|
|
|
.alarm-badge-ok {
|
|
background: rgba(46, 125, 50, 0.08);
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.alarm-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.alarm-card {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 16px;
|
|
padding: 16px 20px;
|
|
border-radius: var(--md-radius-lg);
|
|
background: var(--md-surface);
|
|
box-shadow: var(--md-elevation-1);
|
|
transition: box-shadow var(--md-motion-quick);
|
|
}
|
|
|
|
.alarm-card:hover {
|
|
box-shadow: var(--md-elevation-2);
|
|
}
|
|
|
|
.alarm-card-warning {
|
|
border-left: 4px solid #e65100;
|
|
}
|
|
|
|
.alarm-card-critical {
|
|
border-left: 4px solid var(--md-error);
|
|
background: rgba(217, 48, 37, 0.02);
|
|
}
|
|
|
|
.alarm-card-icon {
|
|
flex-shrink: 0;
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--md-radius-full);
|
|
}
|
|
|
|
.alarm-card-warning .alarm-card-icon {
|
|
background: rgba(230, 81, 0, 0.08);
|
|
color: #e65100;
|
|
}
|
|
|
|
.alarm-card-critical .alarm-card-icon {
|
|
background: rgba(217, 48, 37, 0.08);
|
|
color: var(--md-error);
|
|
}
|
|
|
|
.alarm-card-body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.alarm-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.alarm-severity-badge {
|
|
padding: 2px 10px;
|
|
border-radius: var(--md-radius-sm);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.severity-warning {
|
|
background: rgba(230, 81, 0, 0.08);
|
|
color: #e65100;
|
|
}
|
|
|
|
.severity-critical {
|
|
background: rgba(217, 48, 37, 0.08);
|
|
color: var(--md-error);
|
|
}
|
|
|
|
.alarm-card-time {
|
|
font-size: 12px;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.alarm-card-message {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--md-on-surface);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.alarm-card-meta {
|
|
display: flex;
|
|
gap: 16px;
|
|
font-size: 13px;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.alarm-card-meta span {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.alarm-card-meta .material-symbols-outlined {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.alarm-card-actions {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.alarm-ack-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 12px;
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.alarm-ack-info .material-symbols-outlined {
|
|
font-size: 18px;
|
|
}
|
|
|
|
/* ===== Spec Grid (Machine Detail) ===== */
|
|
.spec-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 20px 24px;
|
|
padding: 16px 20px;
|
|
}
|
|
|
|
.spec-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.spec-item-full {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.spec-label {
|
|
font-size: 12px;
|
|
color: var(--md-on-surface-variant);
|
|
font-weight: 500;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.spec-value {
|
|
font-size: 14px;
|
|
color: var(--md-on-surface);
|
|
}
|
|
|
|
.btn-icon-disabled {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: var(--md-radius-full);
|
|
opacity: 0.38;
|
|
cursor: default;
|
|
}
|
|
|
|
.btn-icon-disabled .material-symbols-outlined {
|
|
font-size: 20px;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
/* ===== Inspection Summary Grid ===== */
|
|
.inspection-summary-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
/* ===== Responsive ===== */
|
|
@media (max-width: 768px) {
|
|
.topnav-center {
|
|
display: none;
|
|
}
|
|
|
|
.topnav-app-name {
|
|
display: none;
|
|
}
|
|
|
|
.machine-grid,
|
|
.template-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.inspection-item-body {
|
|
padding-left: 0;
|
|
}
|
|
|
|
.inspection-input-row {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.page-header-right {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.form-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.form-row {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.item-row {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.part-table {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.part-table th,
|
|
.part-table td {
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.spec-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 12px;
|
|
}
|
|
|
|
.page-container {
|
|
padding: 16px;
|
|
}
|
|
|
|
.detail-header {
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.modal-content.modal-lg {
|
|
width: 95vw;
|
|
max-width: none;
|
|
}
|
|
|
|
.part-table-wrap {
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.history-table {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.alarm-card {
|
|
padding: 12px;
|
|
}
|
|
|
|
.alarm-card-header {
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.section-header {
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.inspection-summary-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.login-card {
|
|
padding: 32px 24px;
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
max-width: none;
|
|
}
|
|
|
|
.login-container {
|
|
padding: 0;
|
|
background: var(--md-surface);
|
|
}
|
|
|
|
.home-header {
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.tenant-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.spec-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.page-container {
|
|
padding: 12px;
|
|
}
|
|
|
|
.detail-title {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.detail-subtitle {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.part-table th:nth-child(n+6),
|
|
.part-table td:nth-child(n+6) {
|
|
display: none;
|
|
}
|
|
|
|
.page-header {
|
|
gap: 8px;
|
|
}
|
|
|
|
.page-header-actions {
|
|
width: 100%;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.btn-primary,
|
|
.btn-outline {
|
|
font-size: 13px;
|
|
padding: 8px 14px;
|
|
}
|
|
|
|
.btn-sync {
|
|
font-size: 13px;
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.modal-content {
|
|
margin: 8px;
|
|
max-height: 95vh;
|
|
border-radius: var(--md-radius-lg);
|
|
}
|
|
|
|
.modal-content.modal-sm {
|
|
width: 95vw;
|
|
}
|
|
|
|
.topnav {
|
|
padding: 0 12px;
|
|
}
|
|
|
|
.inspection-summary-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* ===== Machine Grouping ===== */
|
|
.machine-list-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 32px;
|
|
}
|
|
|
|
.machine-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.machine-group-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid var(--md-outline-variant);
|
|
}
|
|
|
|
.machine-group-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
color: var(--md-on-surface);
|
|
margin: 0;
|
|
}
|
|
|
|
.machine-group-title .material-symbols-outlined {
|
|
color: var(--md-primary);
|
|
font-size: 24px;
|
|
}
|
|
|
|
.machine-count {
|
|
font-size: 14px;
|
|
color: var(--md-on-surface-variant);
|
|
font-weight: 400;
|
|
}
|
|
|
|
.machine-group-chevron {
|
|
font-size: 20px;
|
|
color: var(--md-on-surface-variant);
|
|
transition: transform 0.2s ease;
|
|
transform: rotate(-90deg);
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.machine-group-chevron-open {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
.machine-group-header:hover {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.machine-card-top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.machine-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 2px 8px;
|
|
border-radius: var(--md-radius-sm);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.machine-badge-critical {
|
|
background: rgba(217, 48, 37, 0.1);
|
|
color: var(--md-error);
|
|
border: 1px solid rgba(217, 48, 37, 0.2);
|
|
}
|
|
|
|
.machine-badge-major {
|
|
background: rgba(249, 171, 0, 0.1);
|
|
color: #e65100;
|
|
border: 1px solid rgba(249, 171, 0, 0.2);
|
|
}
|
|
|
|
.machine-badge-minor {
|
|
background: var(--md-surface-container-highest);
|
|
color: var(--md-on-surface-variant);
|
|
border: 1px solid var(--md-outline-variant);
|
|
}
|
|
|
|
/* ===== Equipment Sync ===== */
|
|
|
|
/* Sync badge on machine cards */
|
|
.sync-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 8px;
|
|
border-radius: var(--md-radius-sm);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
background: rgba(26, 115, 232, 0.08);
|
|
color: var(--md-primary);
|
|
border: 1px solid rgba(26, 115, 232, 0.15);
|
|
}
|
|
|
|
.sync-badge .material-symbols-outlined {
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Sync status section on machine detail page */
|
|
.sync-status-section {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 16px;
|
|
background: var(--md-surface-container-low);
|
|
border-radius: var(--md-radius);
|
|
margin-bottom: 16px;
|
|
font-size: 13px;
|
|
color: var(--md-on-surface-variant);
|
|
border: 1px solid var(--md-outline-variant);
|
|
}
|
|
|
|
.sync-status-section .material-symbols-outlined {
|
|
font-size: 20px;
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
.sync-status-label {
|
|
font-weight: 500;
|
|
color: var(--md-on-surface);
|
|
}
|
|
|
|
.sync-status-value {
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.sync-status-divider {
|
|
width: 1px;
|
|
height: 20px;
|
|
background: var(--md-outline-variant);
|
|
}
|
|
|
|
/* Info tooltip for upstream-managed fields */
|
|
.field-info-tooltip {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
margin-left: 4px;
|
|
cursor: help;
|
|
}
|
|
|
|
.field-info-tooltip .material-symbols-outlined {
|
|
font-size: 16px;
|
|
color: var(--md-on-surface-variant);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.field-info-tooltip:hover .material-symbols-outlined {
|
|
opacity: 1;
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
.field-info-tooltip-text {
|
|
display: none;
|
|
position: absolute;
|
|
bottom: calc(100% + 8px);
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
padding: 8px 12px;
|
|
background: var(--md-on-surface);
|
|
color: var(--md-surface);
|
|
font-size: 12px;
|
|
border-radius: var(--md-radius-xs);
|
|
white-space: nowrap;
|
|
z-index: 100;
|
|
box-shadow: var(--md-elevation-2);
|
|
}
|
|
|
|
.field-info-tooltip:hover .field-info-tooltip-text {
|
|
display: block;
|
|
}
|
|
|
|
/* Import modal - extends .modal-content */
|
|
.import-modal {
|
|
max-width: 640px;
|
|
}
|
|
|
|
.import-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
border-bottom: 1px solid var(--md-outline-variant);
|
|
}
|
|
|
|
.import-toolbar-count {
|
|
font-size: 12px;
|
|
color: var(--md-on-surface-variant);
|
|
padding-right: 16px;
|
|
}
|
|
|
|
.import-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-height: 480px;
|
|
overflow-y: auto;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.import-group + .import-group {
|
|
border-top: 1px solid var(--md-outline-variant);
|
|
}
|
|
|
|
.import-group-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 16px;
|
|
position: sticky;
|
|
top: 0;
|
|
background: var(--md-surface);
|
|
z-index: 1;
|
|
}
|
|
|
|
.import-group-checkbox {
|
|
font-size: 22px;
|
|
color: var(--md-primary);
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.import-group-info {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.import-group-name {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--md-on-surface);
|
|
}
|
|
|
|
.import-group-count {
|
|
font-size: 12px;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.import-group-chevron {
|
|
margin-left: auto;
|
|
font-size: 20px;
|
|
color: var(--md-on-surface-variant);
|
|
transition: transform var(--md-motion-standard);
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
.import-group-chevron.expanded {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
.import-group-items {
|
|
padding-left: 16px;
|
|
}
|
|
|
|
.import-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 8px 16px;
|
|
border-radius: var(--md-radius-sm);
|
|
cursor: pointer;
|
|
transition: background var(--md-motion-standard);
|
|
}
|
|
|
|
.import-item:hover {
|
|
background: var(--md-surface-container);
|
|
}
|
|
|
|
.import-item-checkbox {
|
|
width: 18px;
|
|
height: 18px;
|
|
accent-color: var(--md-primary);
|
|
}
|
|
|
|
.import-item-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.import-item-name {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--md-on-surface);
|
|
}
|
|
|
|
.import-item-code {
|
|
font-size: 11px;
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.import-item-imported {
|
|
opacity: 0.5;
|
|
cursor: default;
|
|
}
|
|
|
|
.import-item-imported .import-item-checkbox {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.imported-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 2px 6px;
|
|
border-radius: var(--md-radius-xs);
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
background: var(--md-surface-container-highest);
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
/* History table */
|
|
.history-section {
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.history-section-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--md-on-surface);
|
|
margin-bottom: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.history-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.history-table th {
|
|
text-align: left;
|
|
padding: 8px 12px;
|
|
font-weight: 600;
|
|
color: var(--md-on-surface-variant);
|
|
border-bottom: 2px solid var(--md-outline-variant);
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.history-table td {
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--md-surface-container-high);
|
|
color: var(--md-on-surface);
|
|
vertical-align: top;
|
|
}
|
|
|
|
.history-table tr:hover td {
|
|
background: var(--md-surface-container-low);
|
|
}
|
|
|
|
.history-source-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 2px 6px;
|
|
border-radius: var(--md-radius-xs);
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.history-source-local {
|
|
background: rgba(26, 115, 232, 0.1);
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
.history-source-sync {
|
|
background: rgba(30, 142, 62, 0.1);
|
|
color: var(--md-success);
|
|
}
|
|
|
|
.history-old-value {
|
|
text-decoration: line-through;
|
|
color: var(--md-on-surface-variant);
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.history-new-value {
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Sync result notification banner */
|
|
.sync-result-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 16px;
|
|
border-radius: var(--md-radius);
|
|
margin-bottom: 16px;
|
|
animation: modal-fade-in 200ms ease-out;
|
|
}
|
|
|
|
.sync-result-banner-success {
|
|
background: rgba(30, 142, 62, 0.08);
|
|
border: 1px solid rgba(30, 142, 62, 0.2);
|
|
color: var(--md-success);
|
|
}
|
|
|
|
.sync-result-banner-error {
|
|
background: rgba(217, 48, 37, 0.08);
|
|
border: 1px solid rgba(217, 48, 37, 0.2);
|
|
color: var(--md-error);
|
|
}
|
|
|
|
.sync-result-banner .material-symbols-outlined {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.sync-result-banner-text {
|
|
flex: 1;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.sync-result-banner-close {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
color: inherit;
|
|
opacity: 0.6;
|
|
padding: 4px;
|
|
}
|
|
|
|
.sync-result-banner-close:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Sync action buttons group */
|
|
.sync-btn-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.btn-sync {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 16px;
|
|
border-radius: var(--md-radius-full);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
border: 1px solid var(--md-outline-variant);
|
|
background: var(--md-surface);
|
|
color: var(--md-on-surface);
|
|
cursor: pointer;
|
|
transition: all var(--md-motion-standard);
|
|
}
|
|
|
|
.btn-sync:hover {
|
|
background: var(--md-surface-container);
|
|
border-color: var(--md-outline);
|
|
}
|
|
|
|
.btn-sync:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-sync .material-symbols-outlined {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.btn-sync-primary {
|
|
background: var(--md-primary);
|
|
color: var(--md-on-primary);
|
|
border-color: var(--md-primary);
|
|
}
|
|
|
|
.btn-sync-primary:hover {
|
|
background: var(--md-primary-dark);
|
|
border-color: var(--md-primary-dark);
|
|
}
|
|
|
|
/* Sync spinner */
|
|
@keyframes sync-spin {
|
|
from { transform: rotate(0deg); }
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.sync-spinning .material-symbols-outlined {
|
|
animation: sync-spin 1s linear infinite;
|
|
}
|
|
|
|
/* Select all / deselect all in import modal */
|
|
.import-select-all {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 16px;
|
|
font-size: 13px;
|
|
color: var(--md-primary);
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.import-summary {
|
|
padding: 8px 16px;
|
|
font-size: 12px;
|
|
color: var(--md-on-surface-variant);
|
|
border-top: 1px solid var(--md-outline-variant);
|
|
}
|
|
|
|
/* Load more button for history */
|
|
.history-load-more {
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: 12px;
|
|
}
|
|
|
|
.history-load-more button {
|
|
padding: 8px 24px;
|
|
border-radius: var(--md-radius-full);
|
|
border: 1px solid var(--md-outline-variant);
|
|
background: var(--md-surface);
|
|
color: var(--md-primary);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background var(--md-motion-standard);
|
|
}
|
|
|
|
.history-load-more button:hover {
|
|
background: var(--md-surface-container);
|
|
}
|
|
|
|
/* Empty state for history */
|
|
.history-empty {
|
|
text-align: center;
|
|
padding: 32px;
|
|
color: var(--md-on-surface-variant);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.history-empty .material-symbols-outlined {
|
|
font-size: 40px;
|
|
opacity: 0.4;
|
|
margin-bottom: 8px;
|
|
display: block;
|
|
}
|