All checks were successful
Deploy to Production / deploy (push) Successful in 1m17s
- Add Alarm model with tenant/part/machine relationships and 3 indexes - Add alembic migration c5d6e7f8a9b0_add_alarms - Add alarms API: list (filter by ack/severity), summary, acknowledge - Auto-generate alarms on counter update (threshold warning, critical at 100%) - Duplicate alarm prevention for same part+alarm_type - Add alarms frontend page with active/acknowledged tabs, summary badges - 9 new tests (67/67 total passing) Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
1999 lines
33 KiB
CSS
1999 lines
33 KiB
CSS
:root {
|
|
--md-primary: #1a73e8;
|
|
--md-primary-dark: #1557b0;
|
|
--md-success: #1e8e3e;
|
|
--md-error: #d93025;
|
|
--md-warning: #f9ab00;
|
|
--md-surface: #ffffff;
|
|
--md-surface-variant: #f8f9fa;
|
|
--md-on-surface: #202124;
|
|
--md-on-surface-secondary: #5f6368;
|
|
--md-outline: #dadce0;
|
|
--md-radius: 8px;
|
|
--md-radius-lg: 12px;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
html, body {
|
|
max-width: 100vw;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
color: var(--md-on-surface);
|
|
background: var(--md-surface-variant);
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
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 {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 40px;
|
|
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-variant);
|
|
}
|
|
|
|
.auth-loading .material-symbols-outlined {
|
|
font-size: 48px;
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
.card {
|
|
background: var(--md-surface);
|
|
border-radius: var(--md-radius-lg);
|
|
border: 1px solid var(--md-outline);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid var(--md-outline);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--md-on-surface);
|
|
}
|
|
|
|
.card-header .material-symbols-outlined {
|
|
font-size: 20px;
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
.card-body {
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.btn-outline {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 8px 16px;
|
|
border: 1px solid var(--md-outline);
|
|
border-radius: 20px;
|
|
background: transparent;
|
|
color: var(--md-on-surface-secondary);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.btn-outline:hover {
|
|
background: var(--md-surface-variant);
|
|
}
|
|
|
|
.btn-outline .material-symbols-outlined {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.empty-message {
|
|
text-align: center;
|
|
padding: 32px;
|
|
color: var(--md-on-surface-secondary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.home-container {
|
|
max-width: 960px;
|
|
margin: 0 auto;
|
|
padding: 32px 20px;
|
|
}
|
|
|
|
.home-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.home-user {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
font-size: 13px;
|
|
color: var(--md-on-surface-secondary);
|
|
}
|
|
|
|
.tenant-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
.tenant-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 24px 16px;
|
|
border: 1px solid var(--md-outline);
|
|
border-radius: var(--md-radius-lg);
|
|
background: var(--md-surface);
|
|
cursor: pointer;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.tenant-card:hover {
|
|
border-color: var(--md-primary);
|
|
box-shadow: 0 2px 8px rgba(26, 115, 232, 0.15);
|
|
}
|
|
|
|
.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-secondary);
|
|
}
|
|
|
|
.login-container {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--md-surface-variant);
|
|
padding: 20px;
|
|
}
|
|
|
|
.login-card {
|
|
background: var(--md-surface);
|
|
border-radius: var(--md-radius-lg);
|
|
padding: 40px;
|
|
width: 100%;
|
|
max-width: 400px;
|
|
border: 1px solid var(--md-outline);
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.login-header {
|
|
text-align: center;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.login-icon {
|
|
font-size: 48px;
|
|
color: var(--md-primary);
|
|
margin-bottom: 12px;
|
|
display: block;
|
|
}
|
|
|
|
.login-header h1 {
|
|
font-size: 24px;
|
|
font-weight: 500;
|
|
margin: 0 0 8px 0;
|
|
}
|
|
|
|
.login-header p {
|
|
font-size: 14px;
|
|
color: var(--md-on-surface-secondary);
|
|
margin: 0;
|
|
}
|
|
|
|
.login-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.login-error {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px 16px;
|
|
background: #fce8e6;
|
|
border-radius: var(--md-radius);
|
|
color: var(--md-error);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.login-error .material-symbols-outlined {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.form-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.form-field label {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--md-on-surface-secondary);
|
|
}
|
|
|
|
.form-field input {
|
|
padding: 14px 16px;
|
|
border: 1px solid var(--md-outline);
|
|
border-radius: var(--md-radius);
|
|
background: var(--md-surface);
|
|
color: var(--md-on-surface);
|
|
font-size: 16px;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.form-field input:focus {
|
|
outline: none;
|
|
border-color: var(--md-primary);
|
|
box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
|
|
}
|
|
|
|
.form-field input::placeholder {
|
|
color: #9aa0a6;
|
|
}
|
|
|
|
.form-field input:disabled {
|
|
background: #f1f3f4;
|
|
opacity: 0.7;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.login-button {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 14px 24px;
|
|
background: var(--md-primary);
|
|
color: #ffffff;
|
|
border: none;
|
|
border-radius: 20px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background 0.2s, box-shadow 0.2s;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.login-button:hover:not(:disabled) {
|
|
background: var(--md-primary-dark);
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.login-button:disabled {
|
|
background: #a8c7fa;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.login-button .material-symbols-outlined {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.toast-container {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
right: 24px;
|
|
z-index: 1000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.toast {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 16px;
|
|
border-radius: var(--md-radius);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
min-width: 300px;
|
|
max-width: 480px;
|
|
animation: toast-in 0.3s ease;
|
|
}
|
|
|
|
.toast-success { background: #e6f4ea; color: var(--md-success); }
|
|
.toast-error { background: #fce8e6; color: var(--md-error); }
|
|
.toast-info { background: #e8f0fe; color: var(--md-primary); }
|
|
|
|
.toast-icon { font-size: 20px; }
|
|
.toast-message { flex: 1; font-size: 14px; }
|
|
|
|
.toast-close {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
color: inherit;
|
|
opacity: 0.6;
|
|
padding: 4px;
|
|
}
|
|
|
|
.toast-close:hover { opacity: 1; }
|
|
|
|
.toast-exit {
|
|
animation: toast-out 0.3s ease forwards;
|
|
}
|
|
|
|
@keyframes toast-in {
|
|
from { transform: translateX(100%); opacity: 0; }
|
|
to { transform: translateX(0); opacity: 1; }
|
|
}
|
|
|
|
@keyframes toast-out {
|
|
from { transform: translateX(0); opacity: 1; }
|
|
to { transform: translateX(100%); opacity: 0; }
|
|
}
|
|
|
|
/* ===== TopNav ===== */
|
|
.topnav {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 56px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 20px;
|
|
background: var(--md-surface);
|
|
border-bottom: 1px solid var(--md-outline);
|
|
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: 4px;
|
|
border-radius: var(--md-radius);
|
|
color: var(--md-primary);
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.topnav-brand:hover {
|
|
background: var(--md-surface-variant);
|
|
}
|
|
|
|
.topnav-brand .material-symbols-outlined {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.topnav-app-name {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--md-on-surface);
|
|
}
|
|
|
|
.topnav-divider {
|
|
width: 1px;
|
|
height: 24px;
|
|
background: var(--md-outline);
|
|
}
|
|
|
|
.topnav-tenant {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--md-on-surface-secondary);
|
|
}
|
|
|
|
.topnav-center {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.topnav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 14px;
|
|
background: none;
|
|
border: none;
|
|
border-radius: 20px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--md-on-surface-secondary);
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
.topnav-item:hover {
|
|
background: var(--md-surface-variant);
|
|
color: var(--md-on-surface);
|
|
}
|
|
|
|
.topnav-item.active {
|
|
background: #e8f0fe;
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
.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-secondary);
|
|
}
|
|
|
|
/* ===== Tenant Layout ===== */
|
|
.tenant-layout {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.tenant-main {
|
|
padding-top: 56px;
|
|
}
|
|
|
|
/* ===== Page Common ===== */
|
|
.page-container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 24px 20px;
|
|
}
|
|
|
|
.page-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.page-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 20px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.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-secondary);
|
|
}
|
|
|
|
.page-breadcrumb {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
/* ===== Buttons ===== */
|
|
.btn-primary {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 10px 20px;
|
|
background: var(--md-primary);
|
|
color: #ffffff;
|
|
border: none;
|
|
border-radius: 20px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
background: var(--md-primary-dark);
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.btn-primary:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-primary .material-symbols-outlined {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 6px 12px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.btn-sm .material-symbols-outlined {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.btn-text {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
background: none;
|
|
border: none;
|
|
color: var(--md-on-surface-secondary);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
padding: 6px 8px;
|
|
border-radius: var(--md-radius);
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
.btn-text:hover {
|
|
background: var(--md-surface-variant);
|
|
color: var(--md-on-surface);
|
|
}
|
|
|
|
.btn-text .material-symbols-outlined {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.btn-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
background: none;
|
|
border: none;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
color: var(--md-on-surface-secondary);
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
.btn-icon:hover {
|
|
background: var(--md-surface-variant);
|
|
color: var(--md-on-surface);
|
|
}
|
|
|
|
.btn-icon .material-symbols-outlined {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.btn-icon-danger:hover {
|
|
background: #fce8e6;
|
|
color: var(--md-error);
|
|
}
|
|
|
|
/* ===== Empty State ===== */
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 60px 20px;
|
|
color: var(--md-on-surface-secondary);
|
|
}
|
|
|
|
.empty-state .material-symbols-outlined {
|
|
font-size: 48px;
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.empty-state p {
|
|
font-size: 15px;
|
|
}
|
|
|
|
/* ===== Machine Grid ===== */
|
|
.machine-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
.machine-card {
|
|
background: var(--md-surface);
|
|
border: 1px solid var(--md-outline);
|
|
border-radius: var(--md-radius-lg);
|
|
overflow: hidden;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.machine-card:hover {
|
|
border-color: var(--md-primary);
|
|
box-shadow: 0 2px 8px rgba(26, 115, 232, 0.12);
|
|
}
|
|
|
|
.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-secondary);
|
|
font-family: 'SF Mono', 'Menlo', monospace;
|
|
}
|
|
|
|
.machine-card-model {
|
|
font-size: 12px;
|
|
color: var(--md-on-surface-secondary);
|
|
}
|
|
|
|
.machine-card-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding-top: 8px;
|
|
border-top: 1px solid var(--md-outline);
|
|
}
|
|
|
|
.machine-card-parts {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 12px;
|
|
color: var(--md-on-surface-secondary);
|
|
}
|
|
|
|
.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 12px;
|
|
border-top: 1px solid var(--md-outline);
|
|
background: var(--md-surface-variant);
|
|
}
|
|
|
|
/* ===== Detail Page ===== */
|
|
.detail-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 24px;
|
|
padding: 20px;
|
|
background: var(--md-surface);
|
|
border: 1px solid var(--md-outline);
|
|
border-radius: var(--md-radius-lg);
|
|
}
|
|
|
|
.detail-header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.detail-icon {
|
|
font-size: 36px;
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
.detail-title {
|
|
font-size: 20px;
|
|
font-weight: 500;
|
|
margin: 0;
|
|
}
|
|
|
|
.detail-subtitle {
|
|
font-size: 14px;
|
|
color: var(--md-on-surface-secondary);
|
|
}
|
|
|
|
/* ===== Section ===== */
|
|
.section {
|
|
background: var(--md-surface);
|
|
border: 1px solid var(--md-outline);
|
|
border-radius: var(--md-radius-lg);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid var(--md-outline);
|
|
}
|
|
|
|
.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;
|
|
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: 10px 16px;
|
|
font-weight: 500;
|
|
color: var(--md-on-surface-secondary);
|
|
background: var(--md-surface-variant);
|
|
border-bottom: 1px solid var(--md-outline);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.part-table td {
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--md-outline);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.part-table tbody tr:hover {
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.part-table tbody tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.part-row-warning {
|
|
background: #fff8e1 !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-secondary);
|
|
font-family: 'SF Mono', 'Menlo', 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 0.3s;
|
|
}
|
|
|
|
.pct-bar-warning {
|
|
background: var(--md-warning);
|
|
}
|
|
|
|
.pct-label {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* ===== Modal ===== */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.4);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 200;
|
|
padding: 20px;
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--md-surface);
|
|
border-radius: var(--md-radius-lg);
|
|
width: 100%;
|
|
max-width: 480px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.modal-lg {
|
|
max-width: 640px;
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 20px 24px 0;
|
|
}
|
|
|
|
.modal-header h3 {
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
margin: 0;
|
|
}
|
|
|
|
.modal-close {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
background: none;
|
|
border: none;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
color: var(--md-on-surface-secondary);
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
background: var(--md-surface-variant);
|
|
}
|
|
|
|
.modal-content form {
|
|
padding: 20px 24px 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
padding-top: 8px;
|
|
}
|
|
|
|
.modal-body-form {
|
|
padding: 20px 24px 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
/* ===== Form Grid ===== */
|
|
.form-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 16px;
|
|
}
|
|
|
|
.form-field select {
|
|
padding: 14px 16px;
|
|
border: 1px solid var(--md-outline);
|
|
border-radius: var(--md-radius);
|
|
background: var(--md-surface);
|
|
color: var(--md-on-surface);
|
|
font-size: 16px;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
width: 100%;
|
|
}
|
|
|
|
.form-field select:focus {
|
|
outline: none;
|
|
border-color: var(--md-primary);
|
|
box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
|
|
}
|
|
|
|
.form-field select:disabled {
|
|
background: #f1f3f4;
|
|
opacity: 0.7;
|
|
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;
|
|
}
|
|
|
|
/* ===== Tab Bar ===== */
|
|
.tab-bar {
|
|
display: flex;
|
|
gap: 4px;
|
|
margin-bottom: 20px;
|
|
padding: 4px;
|
|
background: var(--md-surface);
|
|
border: 1px solid var(--md-outline);
|
|
border-radius: var(--md-radius-lg);
|
|
width: fit-content;
|
|
}
|
|
|
|
.tab-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 16px;
|
|
border: none;
|
|
border-radius: var(--md-radius);
|
|
background: transparent;
|
|
color: var(--md-on-surface-secondary);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
.tab-item:hover {
|
|
background: var(--md-surface-variant);
|
|
color: var(--md-on-surface);
|
|
}
|
|
|
|
.tab-item.active {
|
|
background: #e8f0fe;
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
.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: 1px solid var(--md-outline);
|
|
border-radius: var(--md-radius-lg);
|
|
overflow: hidden;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.template-card:hover {
|
|
border-color: var(--md-primary);
|
|
box-shadow: 0 2px 8px rgba(26, 115, 232, 0.12);
|
|
}
|
|
|
|
.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: 2px 8px;
|
|
border-radius: 12px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.badge-schedule {
|
|
background: #e8f0fe;
|
|
color: var(--md-primary);
|
|
}
|
|
|
|
.badge-mode {
|
|
background: #e6f4ea;
|
|
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-secondary);
|
|
}
|
|
|
|
.template-card-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 4px;
|
|
padding: 8px 12px;
|
|
border-top: 1px solid var(--md-outline);
|
|
background: var(--md-surface-variant);
|
|
}
|
|
|
|
/* ===== Form Row / Radio / Checkbox ===== */
|
|
.form-row {
|
|
display: flex;
|
|
gap: 16px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.form-row > .form-field {
|
|
flex: 1;
|
|
}
|
|
|
|
.radio-group {
|
|
display: flex;
|
|
gap: 16px;
|
|
padding-top: 4px;
|
|
}
|
|
|
|
.radio-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 14px;
|
|
color: var(--md-on-surface);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.radio-label input[type="radio"] {
|
|
accent-color: var(--md-primary);
|
|
}
|
|
|
|
.checkbox-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
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: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
/* ===== Items List (TemplateEditor) ===== */
|
|
.items-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.item-row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
padding: 12px;
|
|
background: var(--md-surface-variant);
|
|
border-radius: var(--md-radius);
|
|
border: 1px solid var(--md-outline);
|
|
}
|
|
|
|
.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-secondary);
|
|
}
|
|
|
|
.item-fields {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.btn-danger {
|
|
color: var(--md-error);
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: #fce8e6;
|
|
}
|
|
|
|
/* ===== Form Actions ===== */
|
|
.form-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
padding-top: 8px;
|
|
}
|
|
|
|
.card-header {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
/* ===== 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: 1px solid var(--md-outline-variant);
|
|
border-radius: 12px;
|
|
cursor: pointer;
|
|
transition: border-color 0.15s, box-shadow 0.15s;
|
|
}
|
|
|
|
.inspection-card:hover {
|
|
border-color: var(--md-primary);
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.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-variant);
|
|
color: var(--md-on-surface-variant);
|
|
}
|
|
|
|
.badge-progress {
|
|
background: #e3f2fd;
|
|
color: #1565c0;
|
|
}
|
|
|
|
.badge-completed {
|
|
background: #e8f5e9;
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.badge-completed-lg {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 6px 16px;
|
|
background: #e8f5e9;
|
|
color: #2e7d32;
|
|
border-radius: 20px;
|
|
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: 4px;
|
|
}
|
|
|
|
.template-select-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 14px 16px;
|
|
border: 1px solid var(--md-outline-variant);
|
|
border-radius: 10px;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
transition: background 0.15s, border-color 0.15s;
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
|
|
.template-select-item:hover {
|
|
background: var(--md-surface-variant);
|
|
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: 8px;
|
|
padding: 12px 16px;
|
|
background: #fff3e0;
|
|
border-radius: 10px;
|
|
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: 12px;
|
|
padding: 16px 20px;
|
|
background: var(--md-surface);
|
|
transition: border-color 0.15s;
|
|
}
|
|
|
|
.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: 50%;
|
|
background: var(--md-primary);
|
|
color: white;
|
|
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 6px;
|
|
border: 1px solid var(--md-error);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.badge-category {
|
|
background: #f3e5f5;
|
|
color: #7b1fa2;
|
|
}
|
|
|
|
.badge-pass {
|
|
background: #e8f5e9;
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.badge-fail {
|
|
background: #fce8e6;
|
|
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 8px;
|
|
background: var(--md-surface-variant);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.warning-range {
|
|
background: #fff8e1;
|
|
color: #f57f17;
|
|
}
|
|
|
|
.boolean-toggle {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.toggle-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 8px 20px;
|
|
border: 1px solid var(--md-outline-variant);
|
|
border-radius: 20px;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.toggle-btn:hover:not(:disabled) {
|
|
background: var(--md-surface-variant);
|
|
}
|
|
|
|
.toggle-btn:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.toggle-btn .material-symbols-outlined {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.toggle-pass.active {
|
|
background: #e8f5e9;
|
|
border-color: #4caf50;
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.toggle-fail.active {
|
|
background: #fce8e6;
|
|
border-color: var(--md-error);
|
|
color: var(--md-error);
|
|
}
|
|
|
|
.form-textarea {
|
|
width: 100%;
|
|
min-height: 48px;
|
|
padding: 10px 14px;
|
|
border: 1px solid var(--md-outline-variant);
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
resize: vertical;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.form-textarea:focus {
|
|
outline: none;
|
|
border-color: var(--md-primary);
|
|
}
|
|
|
|
.form-textarea:disabled {
|
|
background: var(--md-surface-variant);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.form-select {
|
|
padding: 10px 14px;
|
|
border: 1px solid var(--md-outline-variant);
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
background: var(--md-surface);
|
|
min-width: 200px;
|
|
}
|
|
|
|
.form-select:focus {
|
|
outline: none;
|
|
border-color: var(--md-primary);
|
|
}
|
|
|
|
.form-select:disabled {
|
|
background: var(--md-surface-variant);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.complete-summary {
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
padding: 12px;
|
|
background: var(--md-surface-variant);
|
|
border-radius: 10px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
/* ===== Phase 5: Counter / Replace / History ===== */
|
|
|
|
.modal-sm {
|
|
max-width: 480px;
|
|
}
|
|
|
|
.counter-modal-info {
|
|
padding: 16px;
|
|
background: var(--md-surface-variant);
|
|
border-radius: 10px;
|
|
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: #fff3e0;
|
|
border: 1px solid #ffb74d;
|
|
border-radius: 10px;
|
|
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: 10px 14px;
|
|
background: var(--md-surface-variant);
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
color: var(--md-on-surface-variant);
|
|
border-bottom: 1px solid var(--md-outline-variant);
|
|
}
|
|
|
|
.history-table td {
|
|
padding: 10px 14px;
|
|
border-bottom: 1px solid var(--md-outline-variant);
|
|
color: var(--md-on-surface);
|
|
}
|
|
|
|
.history-table tbody tr:hover {
|
|
background: var(--md-surface-variant);
|
|
}
|
|
|
|
.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.5;
|
|
}
|
|
|
|
/* ===== Phase 6: Alarms ===== */
|
|
|
|
.alarm-summary-badges {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.alarm-badge {
|
|
padding: 4px 12px;
|
|
border-radius: 20px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.alarm-badge-critical {
|
|
background: #fce8e6;
|
|
color: var(--md-error);
|
|
}
|
|
|
|
.alarm-badge-warning {
|
|
background: #fff3e0;
|
|
color: #e65100;
|
|
}
|
|
|
|
.alarm-badge-ok {
|
|
background: #e8f5e9;
|
|
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: 12px;
|
|
border: 1px solid var(--md-outline-variant);
|
|
background: var(--md-surface);
|
|
transition: box-shadow 0.15s;
|
|
}
|
|
|
|
.alarm-card:hover {
|
|
box-shadow: var(--md-shadow-1);
|
|
}
|
|
|
|
.alarm-card-warning {
|
|
border-left: 4px solid #e65100;
|
|
}
|
|
|
|
.alarm-card-critical {
|
|
border-left: 4px solid var(--md-error);
|
|
background: #fff8f7;
|
|
}
|
|
|
|
.alarm-card-icon {
|
|
flex-shrink: 0;
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.alarm-card-warning .alarm-card-icon {
|
|
background: #fff3e0;
|
|
color: #e65100;
|
|
}
|
|
|
|
.alarm-card-critical .alarm-card-icon {
|
|
background: #fce8e6;
|
|
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: 12px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.severity-warning {
|
|
background: #fff3e0;
|
|
color: #e65100;
|
|
}
|
|
|
|
.severity-critical {
|
|
background: #fce8e6;
|
|
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;
|
|
}
|
|
|
|
/* ===== 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: 8px 10px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.login-card {
|
|
padding: 32px 24px;
|
|
border-radius: 0;
|
|
border: none;
|
|
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;
|
|
}
|
|
}
|