Files
Flight-Ops/app/globals.css
T

347 lines
5.5 KiB
CSS

* {
box-sizing: border-box;
}
html,
body {
margin: 0;
height: 100%;
font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.map-wrap {
position: relative;
width: 100%;
height: 100%;
}
/* Higher specificity than maplibre-gl.css's .maplibregl-map{position:relative},
which MapLibre adds to the same element and would otherwise win on sheet order. */
.map-wrap .map-container {
position: absolute;
inset: 0;
}
.app-header {
position: absolute;
top: 0;
left: 0;
right: 0;
z-index: 10;
display: flex;
align-items: baseline;
gap: 12px;
padding: 8px 14px;
background: rgba(15, 23, 42, 0.75);
color: #f8fafc;
backdrop-filter: blur(4px);
}
.app-header h1 {
margin: 0;
font-size: 16px;
font-weight: 600;
}
.app-header small {
font-size: 11px;
color: #94a3b8;
}
/* Style switcher — kept subtle, like the version tag. */
.style-switch {
font-size: 12px;
padding: 2px 6px;
border-radius: 4px;
border: 1px solid rgba(148, 163, 184, 0.4);
background: rgba(30, 41, 59, 0.9);
color: #e2e8f0;
}
.style-switch option {
background: #1e293b;
color: #e2e8f0;
}
[data-testid='airport-count'] {
font-size: 12px;
color: #cbd5e1;
}
/* v0.9.0 — single-screen 3-pane shell: left Assets / center map / right Jobs & Market */
.app-shell {
display: grid;
grid-template-columns: 300px minmax(0, 1fr) 320px;
height: 100%;
}
.pane {
background: #0f172a;
color: #e2e8f0;
padding: 14px;
font-size: 13px;
overflow-y: auto;
}
.left-pane {
border-right: 1px solid rgba(148, 163, 184, 0.25);
}
.right-pane {
border-left: 1px solid rgba(148, 163, 184, 0.25);
}
.pane-title {
margin: 0 0 12px;
font-size: 14px;
font-weight: 600;
color: #f8fafc;
}
.pane-heading {
margin: 0 0 8px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #94a3b8;
}
.pane-section {
margin-bottom: 16px;
}
.pane-muted {
color: #94a3b8;
font-size: 12px;
}
.pane-error {
color: #fca5a5;
font-size: 12px;
}
.stat-row {
display: flex;
justify-content: space-between;
align-items: baseline;
padding: 2px 0;
}
.stat-row span {
color: #94a3b8;
font-size: 12px;
}
.stat-row strong {
font-size: 13px;
color: #f8fafc;
}
.fleet-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 8px;
}
.plane-row {
background: rgba(30, 41, 59, 0.6);
border-radius: 6px;
padding: 8px;
}
.plane-main {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 8px;
}
.plane-model {
font-weight: 600;
color: #f1f5f9;
}
.plane-status {
font-size: 11px;
padding: 1px 6px;
border-radius: 4px;
background: rgba(148, 163, 184, 0.2);
color: #cbd5e1;
}
.status-flying {
background: rgba(59, 130, 246, 0.25);
color: #bfdbfe;
}
.fuel-bar {
height: 4px;
border-radius: 2px;
background: rgba(148, 163, 184, 0.25);
margin: 6px 0 4px;
overflow: hidden;
}
.fuel-bar > div {
height: 100%;
border-radius: 2px;
background: #34d399;
}
.plane-sub {
display: flex;
justify-content: space-between;
gap: 8px;
font-size: 11px;
color: #cbd5e1;
}
.plane-loc {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sim-clock {
margin: 0 0 8px;
font-size: 12px;
color: #cbd5e1;
font-variant-numeric: tabular-nums;
}
.time-controls {
display: flex;
gap: 8px;
}
.time-controls button {
font-size: 12px;
padding: 4px 10px;
border-radius: 4px;
border: 1px solid rgba(148, 163, 184, 0.4);
background: rgba(30, 41, 59, 0.9);
color: #e2e8f0;
cursor: pointer;
}
.time-controls input[type='range'] {
flex: 1;
accent-color: #38bdf8;
}
.time-scale-value {
font-size: 12px;
color: #e2e8f0;
min-width: 34px;
text-align: right;
font-variant-numeric: tabular-nums;
}
/* v0.10.0 — right Jobs & Market pane (contracts + market) */
.contract-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 8px;
}
.contract-row {
background: rgba(30, 41, 59, 0.6);
border-radius: 6px;
padding: 8px;
}
.contract-main {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
}
.contract-route {
font-weight: 600;
color: #f1f5f9;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.contract-sub {
display: flex;
justify-content: space-between;
gap: 8px;
margin-top: 4px;
font-size: 11px;
color: #cbd5e1;
font-variant-numeric: tabular-nums;
}
.pane-btn {
flex-shrink: 0;
font-size: 12px;
padding: 3px 10px;
border-radius: 4px;
border: 1px solid rgba(148, 163, 184, 0.4);
background: rgba(30, 41, 59, 0.9);
color: #e2e8f0;
cursor: pointer;
}
.pane-btn:disabled {
opacity: 0.5;
cursor: default;
}
.dispatch-controls select,
.market-row select {
font-size: 12px;
padding: 3px 6px;
border-radius: 4px;
border: 1px solid rgba(148, 163, 184, 0.4);
background: #1e293b;
color: #e2e8f0;
max-width: 100%;
}
.dispatch-controls {
display: flex;
align-items: center;
gap: 6px;
margin-top: 6px;
}
.market-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
padding: 4px 0;
}
.market-preview {
font-size: 12px;
color: #f8fafc;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
/* v0.12.0 — on-board blocks (per plane) in the right pane */
.onboard-block {
background: rgba(30, 41, 59, 0.6);
border-radius: 6px;
padding: 8px;
margin-bottom: 8px;
}
.onboard-block .contract-row {
background: transparent;
padding: 6px 0 0;
border-top: 1px solid rgba(148, 163, 184, 0.2);
}