1345 lines
22 KiB
CSS
1345 lines
22 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
--bg: #eef3f7;
|
|
--surface: #ffffff;
|
|
--surface-muted: #eef2f5;
|
|
--border: #d9e0e7;
|
|
--text: #17212b;
|
|
--muted: #657487;
|
|
--blue: #1f6feb;
|
|
--green: #15803d;
|
|
--amber: #b45309;
|
|
--red: #b42318;
|
|
--navy: #162231;
|
|
--cyan: #0e7490;
|
|
--shadow: 0 12px 30px rgba(25, 37, 52, 0.08);
|
|
--shadow-strong: 0 18px 46px rgba(18, 30, 44, 0.16);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family:
|
|
"Segoe UI",
|
|
"Noto Sans KR",
|
|
system-ui,
|
|
-apple-system,
|
|
BlinkMacSystemFont,
|
|
sans-serif;
|
|
letter-spacing: 0;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
button {
|
|
min-height: 36px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
font: inherit;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
button:hover {
|
|
border-color: #9aa9b8;
|
|
background: #f9fbfc;
|
|
}
|
|
|
|
.app-shell {
|
|
display: grid;
|
|
grid-template-rows: 64px minmax(0, 1fr);
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 18px;
|
|
padding: 0 20px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: rgba(255, 255, 255, 0.96);
|
|
box-shadow: 0 1px 0 rgba(23, 33, 43, 0.04);
|
|
}
|
|
|
|
.brand-lockup {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 11px;
|
|
min-width: 232px;
|
|
}
|
|
|
|
.brand-mark {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 38px;
|
|
height: 38px;
|
|
border: 1px solid rgba(31, 111, 235, 0.22);
|
|
border-radius: 8px;
|
|
background: #142033;
|
|
color: #ffffff;
|
|
font-size: 13px;
|
|
font-weight: 950;
|
|
}
|
|
|
|
.brand {
|
|
display: block;
|
|
font-size: 18px;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.subtitle {
|
|
display: block;
|
|
margin-top: 4px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.topbar-context {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.topbar-chip {
|
|
padding: 6px 9px;
|
|
border: 1px solid rgba(14, 116, 144, 0.18);
|
|
border-radius: 999px;
|
|
background: rgba(14, 116, 144, 0.08);
|
|
color: var(--cyan);
|
|
}
|
|
|
|
.toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.toolbar-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
padding: 0 11px;
|
|
}
|
|
|
|
.button-icon,
|
|
.button-icon svg {
|
|
display: block;
|
|
width: 15px;
|
|
height: 15px;
|
|
}
|
|
|
|
.button-icon svg {
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
stroke-width: 2.1;
|
|
}
|
|
|
|
.status-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 30px;
|
|
padding: 0 10px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 999px;
|
|
background: var(--surface-muted);
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.status-pill.is-online {
|
|
border-color: rgba(21, 128, 61, 0.25);
|
|
background: rgba(21, 128, 61, 0.08);
|
|
color: var(--green);
|
|
}
|
|
|
|
.status-pill.is-error {
|
|
border-color: rgba(180, 35, 24, 0.25);
|
|
background: rgba(180, 35, 24, 0.08);
|
|
color: var(--red);
|
|
}
|
|
|
|
.workspace {
|
|
display: grid;
|
|
grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
|
|
min-height: 0;
|
|
}
|
|
|
|
.sidebar {
|
|
display: grid;
|
|
grid-template-rows: auto auto auto minmax(0, 1fr);
|
|
gap: 12px;
|
|
min-height: 0;
|
|
padding: 14px;
|
|
border-right: 1px solid var(--border);
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.section-eyebrow {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 20px;
|
|
color: #496173;
|
|
font-size: 11px;
|
|
font-weight: 950;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.ops-brief {
|
|
display: grid;
|
|
gap: 9px;
|
|
min-width: 0;
|
|
padding: 14px;
|
|
border: 1px solid rgba(22, 34, 49, 0.08);
|
|
border-radius: 8px;
|
|
background: #ffffff;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.ops-brief > strong {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
color: var(--navy);
|
|
font-size: 22px;
|
|
line-height: 1.25;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ops-brief p {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
font-weight: 750;
|
|
line-height: 1.45;
|
|
word-break: keep-all;
|
|
}
|
|
|
|
.ops-brief-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 8px;
|
|
}
|
|
|
|
.ops-brief-grid span {
|
|
min-width: 0;
|
|
padding: 9px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 7px;
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.ops-brief-grid small,
|
|
.ops-brief-grid strong {
|
|
display: block;
|
|
}
|
|
|
|
.ops-brief-grid small {
|
|
overflow: hidden;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
font-weight: 850;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ops-brief-grid strong {
|
|
margin-top: 3px;
|
|
font-size: 16px;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.summary-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 8px;
|
|
}
|
|
|
|
.metric {
|
|
min-width: 0;
|
|
padding: 11px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
background: var(--surface);
|
|
box-shadow: 0 1px 0 rgba(23, 33, 43, 0.02);
|
|
}
|
|
|
|
.metric-label {
|
|
display: block;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.metric strong {
|
|
display: block;
|
|
margin-top: 4px;
|
|
font-size: 25px;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.view-tabs {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 6px;
|
|
padding: 4px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
background: var(--surface-muted);
|
|
}
|
|
|
|
.tab-button {
|
|
min-width: 0;
|
|
border-color: transparent;
|
|
background: transparent;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.tab-button.is-active {
|
|
border-color: var(--border);
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
box-shadow: 0 1px 4px rgba(25, 37, 52, 0.08);
|
|
}
|
|
|
|
.vehicle-panel {
|
|
display: grid;
|
|
grid-template-rows: auto auto minmax(0, 1fr);
|
|
min-height: 0;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
background: var(--surface);
|
|
box-shadow: var(--shadow);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.vehicle-panel.is-hidden {
|
|
display: none;
|
|
}
|
|
|
|
.panel-heading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 13px 14px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.panel-heading h1 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.panel-heading span {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.vehicle-controls {
|
|
display: grid;
|
|
gap: 9px;
|
|
padding: 11px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: #fbfcfd;
|
|
}
|
|
|
|
.search-field {
|
|
display: grid;
|
|
gap: 5px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.search-field span {
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.search-field input {
|
|
width: 100%;
|
|
min-height: 36px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
padding: 0 10px;
|
|
background: #ffffff;
|
|
color: var(--text);
|
|
font: inherit;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.search-field input:focus {
|
|
border-color: var(--blue);
|
|
outline: 2px solid rgba(31, 111, 235, 0.14);
|
|
}
|
|
|
|
.status-filters {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 6px;
|
|
}
|
|
|
|
.filter-button {
|
|
min-width: 0;
|
|
min-height: 32px;
|
|
border-color: transparent;
|
|
background: #eef3f7;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.filter-button.is-active {
|
|
border-color: rgba(31, 111, 235, 0.22);
|
|
background: rgba(31, 111, 235, 0.1);
|
|
color: #174ea6;
|
|
}
|
|
|
|
.vehicle-list {
|
|
min-height: 0;
|
|
overflow: auto;
|
|
}
|
|
|
|
.driver-form {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
padding: 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.driver-form label {
|
|
display: grid;
|
|
gap: 5px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.driver-form label:nth-child(n + 3),
|
|
.driver-form button {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.driver-form span {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.driver-form input,
|
|
.driver-form select {
|
|
width: 100%;
|
|
min-height: 36px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
padding: 0 9px;
|
|
background: #ffffff;
|
|
color: var(--text);
|
|
font: inherit;
|
|
}
|
|
|
|
.driver-form input:focus,
|
|
.driver-form select:focus {
|
|
border-color: var(--blue);
|
|
outline: 2px solid rgba(31, 111, 235, 0.14);
|
|
}
|
|
|
|
.driver-list {
|
|
min-height: 160px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.driver-item {
|
|
display: grid;
|
|
gap: 10px;
|
|
padding: 13px 14px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.driver-head {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
gap: 8px;
|
|
align-items: start;
|
|
}
|
|
|
|
.driver-title {
|
|
min-width: 0;
|
|
}
|
|
|
|
.driver-title strong,
|
|
.driver-token code {
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.driver-token {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
gap: 8px;
|
|
align-items: center;
|
|
padding: 8px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
background: #f8fafb;
|
|
}
|
|
|
|
.driver-token code {
|
|
color: #25313d;
|
|
font-family: Consolas, "SFMono-Regular", monospace;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.driver-actions {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 6px;
|
|
}
|
|
|
|
.empty-state {
|
|
padding: 20px 14px;
|
|
color: var(--muted);
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.vehicle-item {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) minmax(74px, auto);
|
|
gap: 10px;
|
|
padding: 13px 14px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
border-left: 3px solid transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.vehicle-item:hover {
|
|
background: #f6f9fb;
|
|
}
|
|
|
|
.vehicle-item.is-selected {
|
|
border-left-color: var(--blue);
|
|
background: rgba(31, 111, 235, 0.06);
|
|
}
|
|
|
|
.vehicle-main {
|
|
min-width: 0;
|
|
}
|
|
|
|
.vehicle-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.vehicle-title strong {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.vehicle-meta {
|
|
margin-top: 6px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.vehicle-route-line,
|
|
.vehicle-cargo-line {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.vehicle-route-line {
|
|
margin-top: 8px;
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
font-weight: 850;
|
|
}
|
|
|
|
.vehicle-cargo-line {
|
|
margin-top: 3px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 750;
|
|
}
|
|
|
|
.vehicle-progress {
|
|
height: 4px;
|
|
margin-top: 9px;
|
|
border-radius: 999px;
|
|
background: #e4ebf1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.vehicle-progress span {
|
|
display: block;
|
|
height: 100%;
|
|
border-radius: inherit;
|
|
background: #1f6feb;
|
|
}
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 22px;
|
|
padding: 0 7px;
|
|
border-radius: 999px;
|
|
font-size: 11px;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.badge.active {
|
|
background: rgba(21, 128, 61, 0.1);
|
|
color: var(--green);
|
|
}
|
|
|
|
.badge.stale {
|
|
background: rgba(180, 83, 9, 0.12);
|
|
color: var(--amber);
|
|
}
|
|
|
|
.badge.offline {
|
|
background: rgba(180, 35, 24, 0.1);
|
|
color: var(--red);
|
|
}
|
|
|
|
.vehicle-type-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 22px;
|
|
padding: 0 7px;
|
|
border-radius: 5px;
|
|
background: #e8eef6;
|
|
color: #2c3b4f;
|
|
font-size: 11px;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.vehicle-type-chip.type-trailer,
|
|
.vehicle-type-chip.type-container {
|
|
background: rgba(44, 62, 80, 0.1);
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.vehicle-type-chip.type-van {
|
|
background: rgba(2, 132, 199, 0.12);
|
|
color: #0369a1;
|
|
}
|
|
|
|
.vehicle-type-chip.type-cold {
|
|
background: rgba(14, 116, 144, 0.12);
|
|
color: #0e7490;
|
|
}
|
|
|
|
.speed {
|
|
display: grid;
|
|
justify-items: end;
|
|
align-content: start;
|
|
gap: 2px;
|
|
color: var(--text);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.speed strong {
|
|
font-size: 20px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.speed span {
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.speed small {
|
|
max-width: 112px;
|
|
overflow: hidden;
|
|
color: #174ea6;
|
|
font-size: 11px;
|
|
font-weight: 850;
|
|
text-align: right;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.map-panel {
|
|
position: relative;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
}
|
|
|
|
#map {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #dfe7ed;
|
|
}
|
|
|
|
.map-message {
|
|
position: absolute;
|
|
z-index: 5;
|
|
top: 14px;
|
|
left: 50%;
|
|
max-width: min(420px, calc(100% - 28px));
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
background: rgba(255, 255, 255, 0.96);
|
|
color: var(--muted);
|
|
box-shadow: var(--shadow);
|
|
font-size: 13px;
|
|
font-weight: 800;
|
|
line-height: 1.35;
|
|
text-align: center;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.map-message.is-hidden {
|
|
display: none;
|
|
}
|
|
|
|
.map-status-panel,
|
|
.route-focus-panel,
|
|
.map-legend {
|
|
position: absolute;
|
|
z-index: 3;
|
|
border: 1px solid rgba(22, 34, 49, 0.12);
|
|
border-radius: 8px;
|
|
background: rgba(255, 255, 255, 0.94);
|
|
box-shadow: var(--shadow-strong);
|
|
backdrop-filter: blur(10px);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.map-status-panel {
|
|
top: 18px;
|
|
left: 18px;
|
|
display: grid;
|
|
gap: 9px;
|
|
width: min(330px, calc(100% - 36px));
|
|
padding: 14px;
|
|
}
|
|
|
|
.map-status-panel > strong {
|
|
color: var(--navy);
|
|
font-size: 18px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.map-status-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 7px;
|
|
}
|
|
|
|
.map-status-grid span {
|
|
min-width: 0;
|
|
padding: 8px;
|
|
border-radius: 7px;
|
|
background: #f5f8fb;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
font-weight: 850;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.map-status-grid b {
|
|
display: block;
|
|
overflow: hidden;
|
|
color: var(--text);
|
|
font-size: 16px;
|
|
line-height: 1.15;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.route-focus-panel {
|
|
right: 18px;
|
|
bottom: 18px;
|
|
display: grid;
|
|
gap: 7px;
|
|
width: min(390px, calc(100% - 36px));
|
|
padding: 13px 14px 14px;
|
|
border-left: 4px solid #aebccc;
|
|
}
|
|
|
|
.route-focus-panel.is-active {
|
|
border-left-color: var(--blue);
|
|
}
|
|
|
|
.route-focus-panel strong {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
color: var(--navy);
|
|
font-size: 16px;
|
|
line-height: 1.2;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.route-focus-panel p {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
line-height: 1.45;
|
|
word-break: keep-all;
|
|
}
|
|
|
|
.map-legend {
|
|
top: 18px;
|
|
right: 86px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
min-height: 36px;
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
.map-legend span {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
font-weight: 900;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.legend-dot {
|
|
width: 9px;
|
|
height: 9px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.legend-dot.active {
|
|
background: var(--green);
|
|
}
|
|
|
|
.legend-dot.stale {
|
|
background: var(--amber);
|
|
}
|
|
|
|
.legend-line {
|
|
width: 18px;
|
|
height: 3px;
|
|
border-radius: 999px;
|
|
background: #1f6feb;
|
|
}
|
|
|
|
.history-drawer {
|
|
position: absolute;
|
|
z-index: 4;
|
|
right: min(424px, 48%);
|
|
bottom: 14px;
|
|
left: 14px;
|
|
max-height: min(310px, calc(100% - 28px));
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
background: rgba(255, 255, 255, 0.97);
|
|
box-shadow: var(--shadow);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.history-drawer.is-hidden {
|
|
display: none;
|
|
}
|
|
|
|
.history-heading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.history-heading strong,
|
|
.history-heading span {
|
|
display: block;
|
|
}
|
|
|
|
.history-heading span {
|
|
margin-top: 3px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.history-list {
|
|
display: grid;
|
|
max-height: 248px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.history-row {
|
|
display: grid;
|
|
grid-template-columns: 92px minmax(0, 1fr) 72px;
|
|
gap: 10px;
|
|
align-items: center;
|
|
padding: 9px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.history-row time,
|
|
.history-row span {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.history-row time {
|
|
color: var(--muted);
|
|
font-weight: 800;
|
|
}
|
|
|
|
.truck-marker {
|
|
--truck-color: var(--blue);
|
|
--truck-cab: #1556b8;
|
|
--truck-accent: rgba(255, 255, 255, 0.2);
|
|
--body-width: 42px;
|
|
--body-height: 24px;
|
|
--cab-width: 19px;
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: flex-end;
|
|
width: max-content;
|
|
min-width: calc(var(--body-width) + var(--cab-width));
|
|
min-height: 38px;
|
|
border: 0;
|
|
padding: 0 0 8px;
|
|
background: transparent;
|
|
color: #ffffff;
|
|
filter: drop-shadow(0 8px 13px rgba(16, 32, 48, 0.28));
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
transition: filter 0.18s ease, transform 0.18s ease;
|
|
}
|
|
|
|
.truck-marker:hover {
|
|
filter: drop-shadow(0 10px 16px rgba(16, 32, 48, 0.34));
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.truck-marker.stale {
|
|
--truck-color: var(--amber);
|
|
--truck-cab: #8f4307;
|
|
}
|
|
|
|
.truck-marker.offline {
|
|
--truck-color: var(--red);
|
|
--truck-cab: #8f1d15;
|
|
}
|
|
|
|
.truck-marker.type-trailer {
|
|
--truck-color: #334155;
|
|
--truck-cab: #0f172a;
|
|
--body-width: 62px;
|
|
--body-height: 24px;
|
|
}
|
|
|
|
.truck-marker.type-container {
|
|
--truck-color: #475569;
|
|
--truck-cab: #1e293b;
|
|
--body-width: 58px;
|
|
--body-height: 24px;
|
|
--truck-accent: repeating-linear-gradient(
|
|
90deg,
|
|
rgba(255, 255, 255, 0.18) 0 2px,
|
|
transparent 2px 8px
|
|
);
|
|
}
|
|
|
|
.truck-marker.type-box,
|
|
.truck-marker.type-wing {
|
|
--body-width: 48px;
|
|
--body-height: 25px;
|
|
}
|
|
|
|
.truck-marker.type-van {
|
|
--truck-color: #0284c7;
|
|
--truck-cab: #0369a1;
|
|
--body-width: 34px;
|
|
--body-height: 21px;
|
|
--cab-width: 22px;
|
|
}
|
|
|
|
.truck-marker.type-cold {
|
|
--truck-color: #0e7490;
|
|
--truck-cab: #155e75;
|
|
--body-width: 47px;
|
|
--body-height: 25px;
|
|
--truck-accent: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 45%);
|
|
}
|
|
|
|
.truck-marker.stale {
|
|
--truck-color: var(--amber);
|
|
--truck-cab: #8f4307;
|
|
}
|
|
|
|
.truck-marker.offline {
|
|
--truck-color: var(--red);
|
|
--truck-cab: #8f1d15;
|
|
}
|
|
|
|
.truck-marker::before,
|
|
.truck-marker::after {
|
|
content: "";
|
|
position: absolute;
|
|
bottom: 1px;
|
|
width: 7px;
|
|
height: 7px;
|
|
border: 2px solid #ffffff;
|
|
border-radius: 50%;
|
|
background: #17212b;
|
|
}
|
|
|
|
.truck-marker::before {
|
|
left: 11px;
|
|
}
|
|
|
|
.truck-marker::after {
|
|
right: 12px;
|
|
}
|
|
|
|
.truck-marker__body {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-rows: 1fr 1fr;
|
|
place-items: center;
|
|
width: var(--body-width);
|
|
height: var(--body-height);
|
|
border: 2px solid #ffffff;
|
|
border-right: 0;
|
|
border-radius: 5px 0 0 5px;
|
|
background:
|
|
var(--truck-accent),
|
|
var(--truck-color);
|
|
font-size: 10px;
|
|
font-weight: 900;
|
|
line-height: 1;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.truck-marker.type-van .truck-marker__body {
|
|
grid-template-rows: 1fr;
|
|
border-radius: 9px 0 0 7px;
|
|
}
|
|
|
|
.truck-marker.type-van .truck-marker__type {
|
|
display: none;
|
|
}
|
|
|
|
.truck-marker__type {
|
|
align-self: end;
|
|
font-size: 9px;
|
|
opacity: 0.88;
|
|
}
|
|
|
|
.truck-marker__plate {
|
|
align-self: start;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.truck-marker__cab {
|
|
position: relative;
|
|
width: var(--cab-width);
|
|
height: calc(var(--body-height) - 3px);
|
|
border: 2px solid #ffffff;
|
|
border-radius: 0 6px 5px 0;
|
|
background: var(--truck-cab);
|
|
}
|
|
|
|
.truck-marker__cab::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 3px;
|
|
right: 3px;
|
|
width: 7px;
|
|
height: 5px;
|
|
border-radius: 1px;
|
|
background: rgba(255, 255, 255, 0.72);
|
|
}
|
|
|
|
.leaflet-truck-marker {
|
|
border: 0;
|
|
background: transparent;
|
|
}
|
|
|
|
.kakao-popup {
|
|
min-width: 180px;
|
|
padding: 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
background: var(--surface);
|
|
box-shadow: var(--shadow);
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.popup-title {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.popup-cargo {
|
|
margin-top: 6px;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.popup-route {
|
|
display: grid;
|
|
gap: 4px;
|
|
margin: 8px 0;
|
|
padding: 8px;
|
|
border: 1px solid rgba(31, 111, 235, 0.18);
|
|
border-radius: 6px;
|
|
background: rgba(31, 111, 235, 0.07);
|
|
}
|
|
|
|
.popup-route div {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.popup-route span {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.popup-route strong {
|
|
color: #174ea6;
|
|
font-size: 12px;
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.route-destination-marker,
|
|
.route-destination-leaflet {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.route-destination-marker,
|
|
.route-destination-leaflet,
|
|
.route-destination-leaflet > div {
|
|
display: grid;
|
|
grid-template-columns: auto minmax(0, 1fr);
|
|
grid-template-rows: auto auto;
|
|
align-items: center;
|
|
column-gap: 7px;
|
|
min-width: 112px;
|
|
padding: 7px 9px;
|
|
border: 1px solid rgba(23, 33, 43, 0.16);
|
|
border-radius: 8px;
|
|
background: rgba(255, 255, 255, 0.96);
|
|
box-shadow: 0 10px 24px rgba(20, 40, 70, 0.18);
|
|
}
|
|
|
|
.route-destination-pin {
|
|
grid-row: 1 / span 2;
|
|
display: grid;
|
|
place-items: center;
|
|
min-width: 34px;
|
|
height: 24px;
|
|
border-radius: 999px;
|
|
background: #1f6feb;
|
|
color: #ffffff;
|
|
font-size: 11px;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.route-destination-marker strong,
|
|
.route-destination-leaflet strong {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
color: var(--text);
|
|
font-size: 12px;
|
|
line-height: 1.15;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.route-destination-marker small,
|
|
.route-destination-leaflet small {
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
@media (max-width: 860px) {
|
|
.app-shell {
|
|
grid-template-rows: auto minmax(0, 1fr);
|
|
}
|
|
|
|
.topbar {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.brand-lockup {
|
|
min-width: 0;
|
|
}
|
|
|
|
.topbar-context {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.toolbar {
|
|
width: 100%;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.workspace {
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: minmax(260px, 38vh) minmax(0, 1fr);
|
|
}
|
|
|
|
.sidebar {
|
|
order: 2;
|
|
border-top: 1px solid var(--border);
|
|
border-right: 0;
|
|
overflow: auto;
|
|
}
|
|
|
|
.map-panel {
|
|
order: 1;
|
|
}
|
|
|
|
.map-status-panel {
|
|
top: 10px;
|
|
left: 10px;
|
|
width: min(300px, calc(100% - 20px));
|
|
padding: 10px;
|
|
}
|
|
|
|
.map-legend {
|
|
right: 10px;
|
|
top: auto;
|
|
bottom: 10px;
|
|
}
|
|
|
|
.route-focus-panel {
|
|
right: 10px;
|
|
bottom: 56px;
|
|
width: calc(100% - 20px);
|
|
}
|
|
|
|
.driver-actions {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.history-drawer {
|
|
right: 8px;
|
|
bottom: 8px;
|
|
left: 8px;
|
|
}
|
|
|
|
.history-row {
|
|
grid-template-columns: 82px minmax(0, 1fr);
|
|
}
|
|
|
|
.history-row span:last-child {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 560px) {
|
|
.workspace {
|
|
grid-template-rows: minmax(300px, 42vh) minmax(0, 1fr);
|
|
}
|
|
|
|
.toolbar-button {
|
|
flex: 1 1 128px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.status-pill {
|
|
flex: 1 0 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.sidebar {
|
|
padding: 10px;
|
|
}
|
|
|
|
.ops-brief > strong {
|
|
white-space: normal;
|
|
}
|
|
|
|
.map-status-panel {
|
|
display: none;
|
|
}
|
|
|
|
.map-legend {
|
|
left: 10px;
|
|
right: auto;
|
|
max-width: calc(100% - 20px);
|
|
overflow: auto;
|
|
}
|
|
|
|
.vehicle-item {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
|
|
.vehicle-title {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.vehicle-title strong {
|
|
white-space: normal;
|
|
}
|
|
|
|
.speed {
|
|
grid-template-columns: auto auto minmax(0, 1fr);
|
|
align-items: baseline;
|
|
justify-items: start;
|
|
}
|
|
|
|
.speed small {
|
|
max-width: none;
|
|
text-align: left;
|
|
}
|
|
}
|