- Added monitoring metrics for project creation success and error handling in `ProjectRepository`. - Implemented similar monitoring for scenario creation in `ScenarioRepository`. - Refactored `run_monte_carlo` function in `simulation.py` to include timing and success/error metrics. - Introduced new CSS styles for headers, alerts, and navigation buttons in `main.css` and `projects.css`. - Created a new JavaScript file for navigation logic to handle chevron buttons. - Updated HTML templates to include new navigation buttons and improved styling for buttons. - Added tests for reporting service and routes to ensure proper functionality and access control. - Removed unused imports and optimized existing test files for better clarity and performance.
189 lines
3.1 KiB
CSS
189 lines
3.1 KiB
CSS
:root {
|
|
--card-bg: rgba(21, 27, 35, 0.8);
|
|
--card-border: rgba(255, 255, 255, 0.08);
|
|
--hover-highlight: rgba(241, 178, 26, 0.12);
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.project-metrics {
|
|
display: grid;
|
|
gap: 1.5rem;
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.metric-card {
|
|
background: var(--card-bg);
|
|
border-radius: var(--radius);
|
|
padding: 1.5rem;
|
|
box-shadow: var(--shadow);
|
|
border: 1px solid var(--card-border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.metric-card h2 {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
color: var(--muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.metric-value {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
margin: 0;
|
|
}
|
|
|
|
.metric-caption {
|
|
color: var(--color-text-subtle);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.project-form {
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--card-border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
padding: 1.75rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.definition-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
gap: 1.25rem 2rem;
|
|
}
|
|
|
|
.definition-list dt {
|
|
font-weight: 600;
|
|
color: var(--muted);
|
|
margin-bottom: 0.2rem;
|
|
text-transform: uppercase;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.definition-list dd {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.card {
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--card-border);
|
|
box-shadow: var(--shadow);
|
|
border-radius: var(--radius);
|
|
padding: 1.5rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.card-header h2 {
|
|
margin: 0;
|
|
}
|
|
|
|
.project-layout {
|
|
display: grid;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.table-responsive {
|
|
overflow-x: auto;
|
|
border-radius: var(--table-radius);
|
|
}
|
|
|
|
.table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
border-radius: var(--table-radius);
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.table th,
|
|
.table td {
|
|
padding: 0.75rem 1rem;
|
|
border-bottom: 1px solid var(--card-border);
|
|
background: rgba(21, 27, 35, 0.85);
|
|
}
|
|
|
|
.table tbody tr:hover {
|
|
background: var(--hover-highlight);
|
|
}
|
|
|
|
.table-link {
|
|
color: var(--brand-2);
|
|
text-decoration: none;
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
.table-link:hover,
|
|
.table-link:focus {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.text-right {
|
|
text-align: right;
|
|
}
|
|
|
|
@media (min-width: 960px) {
|
|
.project-layout {
|
|
grid-template-columns: 1.1fr 1.9fr;
|
|
align-items: start;
|
|
}
|
|
|
|
.header-actions {
|
|
justify-content: flex-start;
|
|
}
|
|
}
|
|
|
|
.form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.form-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group select,
|
|
.form-group textarea {
|
|
padding: 0.75rem 0.85rem;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--card-border);
|
|
background: rgba(8, 12, 19, 0.75);
|
|
color: var(--text);
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
justify-content: flex-end;
|
|
}
|