Files
MobilityOps/frontend/src/styles.css
T
NuklearRabbit 03c5b60235 M1: implement operational core
Demo auth, seed import/reset, dashboard, vehicle/booking list+detail, audit trail. Backend: 19 tests passing, ruff clean. Frontend: React Router shell, typed API client, responsive pages. Verified end-to-end via curl and browser.
2026-08-01 21:20:53 +02:00

185 lines
6.6 KiB
CSS

:root {
font-family: Inter, ui-sans-serif, system-ui, sans-serif;
color: #172033;
background: #f3f6fa;
font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: #1f5c8f; }
:focus-visible { outline: 3px solid #1f5c8f; outline-offset: 2px; }
.visually-hidden {
position: absolute;
width: 1px; height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
.demo-banner {
margin: 0;
padding: 8px 16px;
background: #14324f;
color: #eaf2fb;
font-size: 0.85rem;
text-align: center;
}
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-header {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 16px;
padding: 14px 24px;
background: white;
border-bottom: 1px solid #dce3eb;
}
.brand { font-weight: 800; font-size: 1.15rem; color: #172033; }
.app-header nav ul {
display: flex;
flex-wrap: wrap;
gap: 4px;
list-style: none;
margin: 0; padding: 0;
}
.app-header nav a {
display: inline-block;
padding: 8px 12px;
border-radius: 8px;
color: #375065;
text-decoration: none;
font-weight: 600;
}
.app-header nav a.active, .app-header nav a[aria-current="page"] {
background: #e5eef9;
color: #14324f;
}
.user-badge { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }
.user-badge button {
padding: 6px 12px;
border-radius: 8px;
border: 1px solid #cfd8e2;
background: white;
cursor: pointer;
}
#main-content { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 64px; flex: 1; }
.page h1 { margin-top: 0; }
.page section { margin-bottom: 28px; }
.panel {
background: white;
border: 1px solid #dce3eb;
border-radius: 16px;
padding: 20px;
box-shadow: 0 10px 30px rgba(24, 40, 64, .05);
}
.metric-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 12px;
list-style: none;
margin: 0; padding: 0;
}
.metric-tile {
background: white;
border: 1px solid #dce3eb;
border-radius: 14px;
padding: 16px;
display: flex;
flex-direction: column;
gap: 4px;
}
.metric-value { font-size: 1.8rem; font-weight: 800; }
.metric-label { color: #607084; font-size: 0.85rem; }
.attention-list, .today-list, .automation-list, .record-list {
list-style: none;
margin: 12px 0 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 10px;
}
.attention-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #edf1f5; }
.attention-title { margin: 0; font-weight: 700; }
.attention-detail { margin: 2px 0 0; color: #607084; font-size: 0.9rem; }
.today-list li, .automation-list li, .record-list li {
display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
padding: 8px 0; border-bottom: 1px solid #edf1f5;
}
.badge {
display: inline-block;
padding: 3px 10px;
border-radius: 999px;
font-size: 0.75rem;
font-weight: 700;
border: 1px solid transparent;
white-space: nowrap;
}
.severity-high { background: #fbe6e6; color: #8f2323; border-color: #f2b9b9; }
.severity-medium { background: #fdf1de; color: #8a5a10; border-color: #f0d29e; }
.severity-low { background: #eaf1fb; color: #315d73; border-color: #c4d9ec; }
.status-open, .status-pending, .status-active, .status-failed { background: #fdf1de; color: #8a5a10; border-color: #f0d29e; }
.status-failed { background: #fbe6e6; color: #8f2323; border-color: #f2b9b9; }
.status-succeeded, .status-resolved, .status-available, .status-returned { background: #e6f5ec; color: #1f6d3d; border-color: #b9e0c9; }
.status-blocked, .status-rejected { background: #fbe6e6; color: #8f2323; border-color: #f2b9b9; }
.status-cancelled, .status-deferred, .status-cleaning, .status-maintenance, .status-rented, .status-reserved, .status-delivering {
background: #eef1f5; color: #47566b; border-color: #d7dfe8;
}
.filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin-bottom: 16px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: #375065; font-weight: 600; }
.filters select, .filters input[type="text"] { padding: 8px 10px; border: 1px solid #cfd8e2; border-radius: 8px; font-size: 0.95rem; }
.checkbox-label { flex-direction: row !important; align-items: center; gap: 8px !important; }
.data-table { width: 100%; border-collapse: collapse; background: white; border: 1px solid #dce3eb; border-radius: 12px; overflow: hidden; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #edf1f5; font-size: 0.92rem; }
.data-table thead th { background: #f6f8fb; color: #47566b; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #dce3eb; margin: 16px 0; }
.tabs button {
padding: 8px 14px; border: none; background: none; cursor: pointer;
border-bottom: 3px solid transparent; font-weight: 600; color: #607084;
}
.tabs button.active { color: #14324f; border-bottom-color: #1f5c8f; }
.detail-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.detail-grid div { background: white; border: 1px solid #dce3eb; border-radius: 10px; padding: 10px 14px; }
.detail-grid dt { color: #607084; font-size: 0.8rem; margin: 0; }
.detail-grid dd { margin: 4px 0 0; font-weight: 700; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.error { color: #9a2530; font-weight: 600; }
.login-shell { width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0; }
.login-hero { margin-bottom: 24px; }
.eyebrow { color: #315d73; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.login-hero h1 { margin: 6px 0; font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1; }
.login-options { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.login-options button {
padding: 14px 18px; border-radius: 12px; border: none;
background: #14324f; color: white; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.login-options button:hover, .login-options button:focus-visible { background: #1f5c8f; }
.login-options p { margin: 0 0 8px; color: #607084; font-size: 0.9rem; }
@media (max-width: 700px) {
.app-header { flex-direction: column; align-items: flex-start; }
.user-badge { margin-left: 0; }
.data-table, .data-table thead, .data-table tbody, .data-table th, .data-table td, .data-table tr {
display: block;
}
.data-table thead { display: none; }
.data-table tr { border-bottom: 2px solid #dce3eb; padding: 8px 0; }
.data-table td, .data-table th { border: none; padding: 4px 12px; }
}