Files
Comtropy_CargoRadar/apps/web/public/styles.css

1596 lines
27 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;
}
.marker-action-panel {
position: absolute;
right: 18px;
bottom: 104px;
z-index: 6;
display: grid;
gap: 12px;
width: min(380px, calc(100% - 36px));
padding: 14px;
border: 1px solid rgba(22, 34, 49, 0.14);
border-radius: 8px;
background: rgba(255, 255, 255, 0.97);
box-shadow: var(--shadow-strong);
backdrop-filter: blur(12px);
}
.marker-action-panel.is-hidden {
display: none;
}
.marker-action-head {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 12px;
align-items: start;
}
.marker-action-head strong {
display: block;
min-width: 0;
overflow: hidden;
color: var(--navy);
font-size: 17px;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.marker-action-head p {
margin: 5px 0 0;
color: var(--muted);
font-size: 12px;
font-weight: 800;
line-height: 1.35;
word-break: keep-all;
}
.marker-action-head button {
min-width: 52px;
min-height: 32px;
padding: 0 10px;
border: 1px solid var(--border);
border-radius: 7px;
background: #f6f8fb;
color: var(--muted);
font-size: 12px;
font-weight: 900;
cursor: pointer;
}
.marker-action-summary {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 7px;
}
.marker-action-summary span {
min-width: 0;
padding: 8px;
border-radius: 7px;
background: #f4f7fa;
}
.marker-action-summary b,
.marker-action-summary em {
display: block;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.marker-action-summary b {
color: var(--muted);
font-size: 10px;
font-style: normal;
font-weight: 900;
}
.marker-action-summary em {
margin-top: 3px;
color: var(--text);
font-size: 12px;
font-style: normal;
font-weight: 900;
}
.marker-action-buttons {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
}
.marker-action-buttons button {
min-width: 0;
min-height: 38px;
padding: 0 10px;
border: 1px solid rgba(31, 111, 235, 0.18);
border-radius: 7px;
background: #eef5ff;
color: #174ea6;
font-size: 13px;
font-weight: 950;
cursor: pointer;
}
.marker-action-buttons button:hover,
.marker-action-head button:hover {
filter: brightness(0.98);
}
.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-secondary: #93c5fd;
--marker-status: var(--green);
--marker-arrow: #111827;
--truck-heading: 0deg;
position: relative;
display: grid;
place-items: center;
width: 96px;
min-width: 96px;
height: 78px;
min-height: 78px;
border: 0;
padding: 0;
background: transparent;
color: #ffffff;
filter: drop-shadow(0 7px 11px rgba(15, 23, 42, 0.28));
font-family: inherit;
cursor: pointer;
transition: filter 0.18s ease, transform 0.18s ease;
}
.truck-marker:hover,
.truck-marker.is-selected {
z-index: 8;
filter: drop-shadow(0 10px 15px rgba(15, 23, 42, 0.38));
transform: translateY(-1px);
}
.truck-marker.stale {
--marker-status: var(--amber);
}
.truck-marker.offline {
--marker-status: var(--red);
opacity: 0.9;
}
.truck-marker.type-trailer {
--truck-color: #7c3aed;
--truck-cab: #4c1d95;
--truck-secondary: #c4b5fd;
}
.truck-marker.type-container {
--truck-color: #f97316;
--truck-cab: #c2410c;
--truck-secondary: #fed7aa;
}
.truck-marker.type-box {
--truck-color: #059669;
--truck-cab: #047857;
--truck-secondary: #a7f3d0;
}
.truck-marker.type-van {
--truck-color: #0ea5e9;
--truck-cab: #0369a1;
--truck-secondary: #bae6fd;
}
.truck-marker.type-cold {
--truck-color: #0891b2;
--truck-cab: #155e75;
--truck-secondary: #cffafe;
}
.truck-marker.type-wing {
--truck-color: #16a34a;
--truck-cab: #15803d;
--truck-secondary: #bbf7d0;
}
.truck-marker::after {
content: "";
position: absolute;
top: 25px;
right: 7px;
z-index: 4;
width: 10px;
height: 10px;
border: 2px solid #ffffff;
border-radius: 50%;
background: var(--marker-status);
box-shadow: 0 2px 7px rgba(15, 23, 42, 0.34);
pointer-events: none;
}
.truck-marker__direction {
position: absolute;
top: 4px;
left: 50%;
z-index: 4;
width: 24px;
height: 24px;
transform: translateX(-50%) rotate(var(--truck-heading));
transform-origin: 50% 50%;
transition: transform 0.35s ease;
pointer-events: none;
}
.truck-marker__direction-icon {
display: block;
width: 100%;
height: 100%;
overflow: visible;
filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.35));
}
.truck-marker__direction-icon path {
fill: var(--marker-arrow);
stroke: #ffffff;
stroke-linejoin: round;
stroke-width: 3.2;
}
.truck-marker.is-selected .truck-marker__direction {
--marker-arrow: var(--blue);
}
.truck-marker__vehicle {
position: absolute;
top: 18px;
left: 50%;
z-index: 2;
display: block;
width: 86px;
height: 46px;
transform: translateX(-50%);
}
.truck-marker__vehicle::before {
content: "";
position: absolute;
inset: 5px 2px 0;
z-index: -1;
border: 1px solid rgba(15, 23, 42, 0.11);
border-radius: 14px;
background: rgba(255, 255, 255, 0.94);
box-shadow:
0 0 0 2px rgba(255, 255, 255, 0.86),
0 6px 13px rgba(15, 23, 42, 0.22);
}
.truck-marker.is-selected .truck-marker__vehicle::before {
border-color: rgba(31, 111, 235, 0.72);
box-shadow:
0 0 0 3px rgba(255, 255, 255, 0.92),
0 0 0 6px rgba(31, 111, 235, 0.2),
0 8px 17px rgba(15, 23, 42, 0.27);
}
.truck-marker__svg {
display: block;
width: 100%;
height: 100%;
overflow: visible;
}
.truck-marker__svg .vehicle-body,
.truck-marker__svg .vehicle-cab,
.truck-marker__svg .vehicle-trailer,
.truck-marker__svg .vehicle-wing {
fill: var(--truck-color);
stroke: #ffffff;
stroke-linejoin: round;
stroke-width: 3;
}
.truck-marker__svg .vehicle-cab {
fill: var(--truck-cab);
}
.truck-marker__svg .vehicle-wing {
fill: var(--truck-secondary);
stroke: #ffffff;
}
.truck-marker__svg .vehicle-window {
fill: #e0f2fe;
stroke: #ffffff;
stroke-linejoin: round;
stroke-width: 2;
}
.truck-marker__svg .vehicle-wheel {
fill: #111827;
stroke: #ffffff;
stroke-width: 3;
}
.truck-marker__svg .vehicle-detail,
.truck-marker__svg .vehicle-container-lines,
.truck-marker__svg .vehicle-hitch,
.truck-marker__svg .vehicle-snow {
fill: none;
stroke: rgba(255, 255, 255, 0.78);
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2.4;
}
.truck-marker__svg .vehicle-snow {
stroke: #ffffff;
stroke-width: 2.2;
}
.truck-marker__label {
position: absolute;
left: 50%;
bottom: 0;
z-index: 3;
display: inline-flex;
align-items: center;
gap: 4px;
max-width: 88px;
min-height: 19px;
padding: 2px 7px 3px;
border: 1px solid rgba(255, 255, 255, 0.9);
border-radius: 999px;
background: rgba(15, 23, 42, 0.94);
box-shadow: 0 4px 10px rgba(15, 23, 42, 0.28);
color: #ffffff;
font-size: 10px;
font-weight: 900;
line-height: 1.1;
transform: translateX(-50%);
white-space: nowrap;
}
.truck-marker__type,
.truck-marker__plate {
display: inline-block;
min-width: 0;
}
.truck-marker__plate {
overflow: hidden;
text-overflow: ellipsis;
}
.leaflet-truck-marker {
border: 0;
background: transparent;
}
.leaflet-truck-marker.is-selected {
z-index: 1000 !important;
}
.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);
}
.marker-action-panel {
right: 10px;
bottom: 118px;
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;
}
.marker-action-panel {
top: 10px;
bottom: auto;
gap: 10px;
padding: 12px;
}
.marker-action-head strong {
font-size: 15px;
}
.marker-action-summary,
.marker-action-buttons {
grid-template-columns: 1fr;
}
.history-drawer {
right: 8px;
bottom: 8px;
left: 8px;
max-height: min(178px, calc(100% - 86px));
}
.history-heading {
gap: 8px;
padding: 8px 10px;
}
.history-heading strong {
font-size: 14px;
}
.history-heading span {
font-size: 11px;
}
.history-list {
max-height: 122px;
}
.history-row {
padding: 7px 10px;
font-size: 12px;
}
.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;
}
}