updates on the polyline breaks fix
This commit is contained in:
@@ -9985,4 +9985,437 @@
|
||||
font-weight: 800;
|
||||
padding: 2px 8px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
ANALYSIS PAGE — refreshed UI primitives (added 2026-06-03)
|
||||
========================================================================= */
|
||||
|
||||
/* ─── Hero strip: three prominent tiles at the top of the analysis card.
|
||||
Border-top stripe carries the batch / metric accent colour. ────────── */
|
||||
.dispatch-container .da-hero-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.dispatch-container .da-hero-row {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.dispatch-container .da-hero-card {
|
||||
position: relative;
|
||||
padding: 18px 18px 16px;
|
||||
background: #fff;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-top: 3px solid #94a3b8;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.dispatch-container .da-hero-icon {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 10px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 20px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.dispatch-container .da-hero-value {
|
||||
font-size: 32px;
|
||||
font-weight: 800;
|
||||
color: #0f172a;
|
||||
letter-spacing: -0.02em;
|
||||
line-height: 1.05;
|
||||
}
|
||||
|
||||
.dispatch-container .da-hero-unit {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #64748b;
|
||||
margin-left: 2px;
|
||||
}
|
||||
|
||||
.dispatch-container .da-hero-label {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
color: #64748b;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.dispatch-container .da-hero-sub {
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: #94a3b8;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
/* ─── Health KPI band: a row of secondary indicators.
|
||||
First card hosts the utilisation ring; the rest are stat tiles. ───── */
|
||||
.dispatch-container .da-health-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1.2fr repeat(3, 1fr);
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.dispatch-container .da-health-row {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.dispatch-container .da-health-row {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.dispatch-container .da-health-card {
|
||||
background: #fff;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 12px;
|
||||
padding: 14px 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
min-width: 0;
|
||||
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
|
||||
}
|
||||
|
||||
.dispatch-container .da-health-card-stat {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.dispatch-container .da-health-value {
|
||||
font-size: 24px;
|
||||
font-weight: 800;
|
||||
color: #0f172a;
|
||||
letter-spacing: -0.02em;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.dispatch-container .da-health-unit {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #64748b;
|
||||
margin-left: 2px;
|
||||
}
|
||||
|
||||
.dispatch-container .da-health-label {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
color: #64748b;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
}
|
||||
|
||||
.dispatch-container .da-health-sub {
|
||||
font-size: 11.5px;
|
||||
font-weight: 500;
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.dispatch-container .da-health-meta {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* ─── Utilisation ring (CSS-only conic gradient).
|
||||
Driven by two custom properties set inline from JSX:
|
||||
--ring-color: rim accent
|
||||
--ring-pct: 0–100, fills the ring proportionally ─────────────── */
|
||||
.dispatch-container .da-ring {
|
||||
--ring-color: #10b981;
|
||||
--ring-pct: 0;
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
border-radius: 50%;
|
||||
background:
|
||||
conic-gradient(var(--ring-color) calc(var(--ring-pct) * 1%), #f1f5f9 0);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.dispatch-container .da-ring::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 6px;
|
||||
background: #fff;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.dispatch-container .da-ring-num {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
font-size: 18px;
|
||||
font-weight: 800;
|
||||
color: #0f172a;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.dispatch-container .da-ring-unit {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
color: #64748b;
|
||||
margin-left: 1px;
|
||||
}
|
||||
|
||||
/* ─── Recommendation banner — severity variants.
|
||||
Replaces .da-rec / .da-rec-empty with an alert-style row that
|
||||
surfaces backend `reason` + `fleet_balance_assessment` text. ──────── */
|
||||
.dispatch-container .da-rec-banner {
|
||||
display: flex;
|
||||
gap: 14px;
|
||||
padding: 14px 16px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.dispatch-container .da-rec-banner.is-action {
|
||||
background: #eff6ff;
|
||||
border-color: #bfdbfe;
|
||||
color: #1e3a8a;
|
||||
}
|
||||
|
||||
.dispatch-container .da-rec-banner.is-warn {
|
||||
background: #fffbeb;
|
||||
border-color: #fde68a;
|
||||
color: #92400e;
|
||||
}
|
||||
|
||||
.dispatch-container .da-rec-banner.is-success {
|
||||
background: #f0fdf4;
|
||||
border-color: #bbf7d0;
|
||||
color: #166534;
|
||||
}
|
||||
|
||||
.dispatch-container .da-rec-banner.is-info {
|
||||
background: #f8fafc;
|
||||
border-color: #e2e8f0;
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
.dispatch-container .da-rec-banner-icon {
|
||||
flex: 0 0 auto;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 8px;
|
||||
background: rgba(255, 255, 255, 0.55);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.dispatch-container .da-rec-banner-body {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.dispatch-container .da-rec-banner .da-rec-action {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: inherit;
|
||||
text-transform: capitalize;
|
||||
letter-spacing: -0.005em;
|
||||
}
|
||||
|
||||
.dispatch-container .da-rec-banner .da-rec-desc,
|
||||
.dispatch-container .da-rec-banner .da-rec-line {
|
||||
font-size: 12.5px;
|
||||
line-height: 1.5;
|
||||
color: inherit;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.dispatch-container .da-rec-banner .da-rec-assess {
|
||||
margin-top: 2px;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
line-height: 1.55;
|
||||
padding: 8px 10px;
|
||||
border-radius: 8px;
|
||||
background: rgba(15, 23, 42, 0.04);
|
||||
color: inherit;
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
/* ─── Section label "hint" — small grey caption next to the label. ─── */
|
||||
.dispatch-container .da-section-hint {
|
||||
margin-left: 10px;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
color: #94a3b8;
|
||||
text-transform: none;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
/* ─── Gantt axis (shared header above all rider bars). ──────────────── */
|
||||
.dispatch-container .da-gantt-axis {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0 4px 6px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.dispatch-container .da-gantt-axis-mid {
|
||||
font-weight: 500;
|
||||
color: #94a3b8;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* ─── Per-rider gantt bar.
|
||||
Track is a soft slab; .da-gantt-fill is the rider's active span
|
||||
(positioned via inline left%/width%). The trailing .da-gantt-idle
|
||||
is a diagonal hatch tail rendering "fleet kept going after this
|
||||
rider finished". ──────────────────────────────────────────────── */
|
||||
.dispatch-container .da-gantt-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin: 8px 0 4px;
|
||||
}
|
||||
|
||||
.dispatch-container .da-gantt-track {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
height: 24px;
|
||||
background: #f1f5f9;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.dispatch-container .da-gantt-fill {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 8px;
|
||||
color: #fff;
|
||||
font-size: 10.5px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.01em;
|
||||
box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.dispatch-container .da-gantt-fill-start,
|
||||
.dispatch-container .da-gantt-fill-end {
|
||||
text-shadow: 0 1px 1px rgba(15, 23, 42, 0.18);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.dispatch-container .da-gantt-idle {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
background-image:
|
||||
repeating-linear-gradient(
|
||||
135deg,
|
||||
#e2e8f0 0 6px,
|
||||
#f1f5f9 6px 12px
|
||||
);
|
||||
border-left: 1px dashed #cbd5e1;
|
||||
}
|
||||
|
||||
.dispatch-container .da-gantt-util {
|
||||
flex: 0 0 auto;
|
||||
min-width: 44px;
|
||||
text-align: center;
|
||||
font-size: 11.5px;
|
||||
font-weight: 800;
|
||||
padding: 4px 8px;
|
||||
border-radius: 6px;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
/* ─── Kitchen-confidence dot inside the kitchen chip. ──────────────── */
|
||||
.dispatch-container .da-conf-dot {
|
||||
display: inline-block;
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
margin-left: 4px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.dispatch-container .da-conf-dot.is-ok {
|
||||
background: #10b981;
|
||||
box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18);
|
||||
}
|
||||
|
||||
.dispatch-container .da-conf-dot.is-low {
|
||||
background: #f59e0b;
|
||||
box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
|
||||
}
|
||||
|
||||
/* ─── Orders mini progress bar inside a chip. ──────────────────────── */
|
||||
.dispatch-container .da-chip.da-chip-orders {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.dispatch-container .da-orders-label {
|
||||
font-weight: 700;
|
||||
color: #0f172a;
|
||||
font-size: 11.5px;
|
||||
}
|
||||
|
||||
.dispatch-container .da-orders-bar {
|
||||
position: relative;
|
||||
width: 56px;
|
||||
height: 6px;
|
||||
border-radius: 4px;
|
||||
background: #e2e8f0;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.dispatch-container .da-orders-bar-fill {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
|
||||
border-radius: 4px;
|
||||
width: 0;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
.dispatch-container .da-orders-pending {
|
||||
color: #b45309;
|
||||
font-weight: 600;
|
||||
font-size: 10.5px;
|
||||
}
|
||||
Reference in New Issue
Block a user