776 lines
13 KiB
CSS
776 lines
13 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
--bg: #f5f7f9;
|
|
--surface: #ffffff;
|
|
--surface-muted: #eef2f5;
|
|
--border: #d9e0e7;
|
|
--text: #17212b;
|
|
--muted: #657487;
|
|
--blue: #1f6feb;
|
|
--green: #15803d;
|
|
--amber: #b45309;
|
|
--red: #b42318;
|
|
--shadow: 0 12px 30px rgba(25, 37, 52, 0.08);
|
|
}
|
|
|
|
* {
|
|
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;
|
|
}
|
|
|
|
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: 58px minmax(0, 1fr);
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 0 18px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--surface);
|
|
box-shadow: 0 1px 0 rgba(23, 33, 43, 0.02);
|
|
}
|
|
|
|
.brand {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.subtitle {
|
|
margin-left: 8px;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.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(320px, 380px) minmax(0, 1fr);
|
|
min-height: 0;
|
|
}
|
|
|
|
.sidebar {
|
|
display: grid;
|
|
grid-template-rows: auto auto minmax(0, 1fr);
|
|
gap: 12px;
|
|
min-height: 0;
|
|
padding: 14px;
|
|
border-right: 1px solid var(--border);
|
|
background: #fbfcfd;
|
|
}
|
|
|
|
.summary-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 8px;
|
|
}
|
|
|
|
.metric {
|
|
min-width: 0;
|
|
padding: 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
background: var(--surface);
|
|
}
|
|
|
|
.metric-label {
|
|
display: block;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.metric strong {
|
|
display: block;
|
|
margin-top: 4px;
|
|
font-size: 24px;
|
|
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 {
|
|
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: 14px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.panel-heading h1 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.panel-heading span {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.vehicle-list {
|
|
height: calc(100% - 50px);
|
|
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 {
|
|
height: calc(100% - 259px);
|
|
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) auto;
|
|
gap: 10px;
|
|
padding: 13px 14px;
|
|
border-bottom: 1px solid var(--border);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.vehicle-item:hover {
|
|
background: #f6f9fb;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.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 {
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
font-weight: 800;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.history-drawer {
|
|
position: absolute;
|
|
z-index: 4;
|
|
right: 14px;
|
|
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;
|
|
}
|
|
|
|
@media (max-width: 860px) {
|
|
.app-shell {
|
|
grid-template-rows: auto minmax(0, 1fr);
|
|
}
|
|
|
|
.topbar {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
padding: 12px;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.map-panel {
|
|
order: 1;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|