feat: Enhance equipment, maintenance, production, and simulation management interfaces
- Updated equipment.html to include scenario filtering, equipment addition form, and dynamic equipment listing. - Enhanced maintenance.html with scenario filtering, maintenance entry form, and dynamic equipment selection. - Improved production.html to allow scenario filtering and production output entry. - Revamped reporting.html to display scenario KPI summaries with refresh functionality. - Expanded simulations.html to support scenario selection, simulation run history, and detailed results display. - Refactored base_header.html for improved navigation structure and active link highlighting.
This commit is contained in:
@@ -1,60 +1,326 @@
|
||||
:root {
|
||||
--color-background: #f4f5f7;
|
||||
--color-surface: #ffffff;
|
||||
--color-text-primary: #1f2933;
|
||||
--color-text-secondary: #475569;
|
||||
--color-text-muted: #64748b;
|
||||
--color-text-subtle: #94a3b8;
|
||||
--color-text-invert: #ffffff;
|
||||
--color-text-dark: #0f172a;
|
||||
--color-text-strong: #111827;
|
||||
--color-primary: #0b3d91;
|
||||
--color-primary-strong: #2563eb;
|
||||
--color-primary-stronger: #1d4ed8;
|
||||
--color-accent: #38bdf8;
|
||||
--color-border: #e2e8f0;
|
||||
--color-border-strong: #cbd5e1;
|
||||
--color-highlight: #eef2ff;
|
||||
--color-panel-shadow: rgba(15, 23, 42, 0.08);
|
||||
--color-panel-shadow-deep: rgba(15, 23, 42, 0.12);
|
||||
--color-surface-alt: #f8fafc;
|
||||
--color-success: #047857;
|
||||
--color-error: #b91c1c;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
||||
background-color: #f4f5f7;
|
||||
color: #1f2933;
|
||||
background-color: var(--color-background);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.app-layout {
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.app-sidebar {
|
||||
width: 264px;
|
||||
background-color: var(--color-primary);
|
||||
color: var(--color-text-invert);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: 4px 0 16px var(--color-panel-shadow-deep);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.sidebar-inner {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
padding: 2.5rem 1.75rem 1.75rem;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.sidebar-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 12px;
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
var(--color-primary-stronger),
|
||||
var(--color-accent)
|
||||
);
|
||||
color: var(--color-text-invert);
|
||||
font-weight: 700;
|
||||
font-size: 1.1rem;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.brand-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.15rem;
|
||||
}
|
||||
|
||||
.brand-title {
|
||||
font-size: 1.35rem;
|
||||
font-weight: 700;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.brand-subtitle {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
color: rgba(255, 255, 255, 0.78);
|
||||
}
|
||||
|
||||
.sidebar-nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.sidebar-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 0.75rem 1rem;
|
||||
border-radius: 10px;
|
||||
color: rgba(255, 255, 255, 0.88);
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
|
||||
}
|
||||
|
||||
.sidebar-link:hover,
|
||||
.sidebar-link:focus {
|
||||
background: rgba(148, 197, 255, 0.28);
|
||||
color: var(--color-text-invert);
|
||||
transform: translateX(4px);
|
||||
}
|
||||
|
||||
.sidebar-link.is-active {
|
||||
background: rgba(148, 197, 255, 0.4);
|
||||
color: var(--color-text-invert);
|
||||
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
|
||||
}
|
||||
|
||||
.app-main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.app-content {
|
||||
flex: 1;
|
||||
width: min(1120px, 92%);
|
||||
margin: 0 auto;
|
||||
padding: 2.5rem 0 2rem;
|
||||
}
|
||||
|
||||
.container {
|
||||
width: min(960px, 92%);
|
||||
margin: 0 auto;
|
||||
padding: 2rem 0;
|
||||
}
|
||||
|
||||
.site-header {
|
||||
background-color: #0b3d91;
|
||||
color: #ffffff;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
.app-content.container {
|
||||
width: min(1120px, 92%);
|
||||
}
|
||||
|
||||
.header-inner {
|
||||
.dashboard-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 1.5rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.site-title {
|
||||
font-size: 1.5rem;
|
||||
.dashboard-subtitle {
|
||||
margin: 0.35rem 0 0;
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.dashboard-actions {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.dashboard-metrics-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
||||
gap: 1rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.metric-card {
|
||||
background: var(--color-surface);
|
||||
border-radius: 12px;
|
||||
padding: 1.2rem 1.4rem;
|
||||
box-shadow: 0 4px 14px var(--color-panel-shadow);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
|
||||
.metric-label {
|
||||
font-size: 0.82rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.metric-value {
|
||||
font-size: 1.45rem;
|
||||
font-weight: 700;
|
||||
color: var(--color-text-dark);
|
||||
}
|
||||
|
||||
.dashboard-charts {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
||||
gap: 1.75rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.chart-card {
|
||||
min-height: 320px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.chart-card canvas {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.panel-header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
|
||||
.panel-header h3 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.site-nav {
|
||||
.chart-subtitle {
|
||||
margin: 0.25rem 0 0;
|
||||
color: var(--color-text-subtle);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.dashboard-panel {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.dashboard-columns {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
||||
gap: 1.75rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.metric-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.site-nav a {
|
||||
color: #ffffff;
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
.metric-list li {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.site-nav a:hover,
|
||||
.site-nav a:focus {
|
||||
text-decoration: underline;
|
||||
.striped-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
main.container {
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
.striped-list li {
|
||||
padding: 0.85rem 1rem;
|
||||
border-radius: 10px;
|
||||
background: var(--color-surface-alt);
|
||||
box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.6);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.striped-list li + li {
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
.list-title {
|
||||
font-weight: 600;
|
||||
color: var(--color-text-dark);
|
||||
}
|
||||
|
||||
.list-detail {
|
||||
color: var(--color-text-secondary);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.btn.is-loading {
|
||||
opacity: 0.75;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.btn.is-loading::after {
|
||||
content: "";
|
||||
width: 0.85rem;
|
||||
height: 0.85rem;
|
||||
border: 2px solid rgba(255, 255, 255, 0.6);
|
||||
border-top-color: rgba(255, 255, 255, 1);
|
||||
border-radius: 50%;
|
||||
animation: spin 0.8s linear infinite;
|
||||
display: inline-block;
|
||||
margin-left: 0.6rem;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.panel {
|
||||
background-color: #ffffff;
|
||||
background-color: var(--color-surface);
|
||||
border-radius: 12px;
|
||||
padding: 1.5rem;
|
||||
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
|
||||
box-shadow: 0 2px 8px var(--color-panel-shadow);
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
@@ -69,14 +335,14 @@ main.container {
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
font-weight: 600;
|
||||
color: #111827;
|
||||
color: var(--color-text-strong);
|
||||
}
|
||||
|
||||
.form-grid input,
|
||||
.form-grid textarea,
|
||||
.form-grid select {
|
||||
padding: 0.6rem 0.75rem;
|
||||
border: 1px solid #cbd5e1;
|
||||
border: 1px solid var(--color-border-strong);
|
||||
border-radius: 8px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
@@ -84,7 +350,7 @@ main.container {
|
||||
.form-grid input:focus,
|
||||
.form-grid textarea:focus,
|
||||
.form-grid select:focus {
|
||||
outline: 2px solid #2563eb;
|
||||
outline: 2px solid var(--color-primary-strong);
|
||||
outline-offset: 1px;
|
||||
}
|
||||
|
||||
@@ -98,30 +364,30 @@ main.container {
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
background-color: #e2e8f0;
|
||||
color: #0f172a;
|
||||
background-color: var(--color-border);
|
||||
color: var(--color-text-dark);
|
||||
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
||||
}
|
||||
|
||||
.btn:hover,
|
||||
.btn:focus {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1);
|
||||
box-shadow: 0 4px 10px var(--color-panel-shadow);
|
||||
}
|
||||
|
||||
.btn.primary {
|
||||
background-color: #2563eb;
|
||||
color: #ffffff;
|
||||
background-color: var(--color-primary-strong);
|
||||
color: var(--color-text-invert);
|
||||
}
|
||||
|
||||
.btn.primary:hover,
|
||||
.btn.primary:focus {
|
||||
background-color: #1d4ed8;
|
||||
background-color: var(--color-primary-stronger);
|
||||
}
|
||||
|
||||
.result-output {
|
||||
background-color: #0f172a;
|
||||
color: #f8fafc;
|
||||
background-color: var(--color-text-dark);
|
||||
color: var(--color-surface-alt);
|
||||
padding: 1rem;
|
||||
border-radius: 8px;
|
||||
font-family: "Fira Code", "Consolas", "Courier New", monospace;
|
||||
@@ -152,28 +418,28 @@ table {
|
||||
border-collapse: collapse;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
background-color: #f8fafc;
|
||||
background-color: var(--color-surface-alt);
|
||||
}
|
||||
|
||||
thead {
|
||||
background-color: #0b3d91;
|
||||
color: #ffffff;
|
||||
background-color: var(--color-primary);
|
||||
color: var(--color-text-invert);
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
padding: 0.75rem 1rem;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
tbody tr:nth-child(even) {
|
||||
background-color: #eef2ff;
|
||||
background-color: var(--color-highlight);
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
margin-top: 1.5rem;
|
||||
color: #64748b;
|
||||
color: var(--color-text-muted);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@@ -187,16 +453,16 @@ tbody tr:nth-child(even) {
|
||||
}
|
||||
|
||||
.feedback.success {
|
||||
color: #047857;
|
||||
color: var(--color-success);
|
||||
}
|
||||
|
||||
.feedback.error {
|
||||
color: #b91c1c;
|
||||
color: var(--color-error);
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
background-color: #0b3d91;
|
||||
color: #ffffff;
|
||||
background-color: var(--color-primary);
|
||||
color: var(--color-text-invert);
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
@@ -207,3 +473,55 @@ tbody tr:nth-child(even) {
|
||||
padding: 1rem 0;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.app-sidebar {
|
||||
width: 240px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.app-layout {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.app-sidebar {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
|
||||
}
|
||||
|
||||
.sidebar-inner {
|
||||
padding: 1.5rem 1.25rem;
|
||||
}
|
||||
|
||||
.sidebar-brand {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.sidebar-nav {
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.sidebar-link {
|
||||
flex: 1 1 140px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.app-content {
|
||||
width: min(100%, 94%);
|
||||
padding-top: 2rem;
|
||||
}
|
||||
|
||||
.dashboard-charts {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.dashboard-columns {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user