body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
}

#map {
    height: 100vh;
    width: 100%;
}

.panel {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 340px;
    max-height: 85vh;
    overflow-y: auto;
}

.panel h3 {
    margin: 0 0 10px;
    border-bottom: 2px solid #4caf50;
    padding-bottom: 5px;
}

.vehicle-card {
    border-bottom: 1px solid #eee;
    padding: 10px;
    margin-bottom: 8px;
    background: #fafafa;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.vehicle-card:hover {
    background: #e8f5e9;
}

.vehicle-card.active {
    background: #c8e6c9;
    border-left: 4px solid #4caf50;
}

.vehicle-card h4 {
    margin: 0 0 6px;
    color: #333;
}

.status-moving {
    background: #4caf50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    display: inline-block;
}

.status-stopped {
    background: #ff9800;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    display: inline-block;
}

.speed {
    font-weight: bold;
    color: #2196f3;
}

.debug {
    font-size: 11px;
    color: #999;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    text-align: center;
    white-space: pre-line;
}

.report-block {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4caf50;
}

.btn-download {
    width: 100%;
    margin-top: 5px;
    background: #4caf50;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.btn-download:hover {
    background: #388e3c;
}

.btn-track {
    width: 100%;
    margin-top: 5px;
    background: #2196f3;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.btn-track:hover {
    background: #1976d2;
}

.btn-track.hide-track {
    background: #ff5722;
}

.btn-track.hide-track:hover {
    background: #e64a19;
}

.date-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.clear-track {
    background: #ff5722;
    margin-top: 5px;
}

.clear-track:hover {
    background: #e64a19;
}

.stop-info {
    font-size: 11px;
    color: #666;
}

.btn-clear-today {
    width: 100%;
    margin-top: 8px;
    background: #fff;
    color: #e64a19;
    border: 1px solid #e64a19;
    padding: 6px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.btn-clear-today:hover {
    background: #ffede8;
}
.edit-btn {
    cursor: pointer;
    font-size: 13px;
    opacity: 0.6;
    margin-left: 4px;
}

.edit-btn:hover {
    opacity: 1;
}

.vehicle-plate {
    font-size: 12px;
    color: #555;
    margin-bottom: 2px;
}

.vehicle-note {
    font-size: 12px;
    color: #777;
    font-style: italic;
    margin-bottom: 4px;
}

.vehicle-edit-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.edit-input {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 13px;
}

.edit-actions {
    display: flex;
    gap: 6px;
}

.btn-save-edit,
.btn-cancel-edit {
    flex: 1;
    border: none;
    padding: 6px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    color: white;
}

.btn-save-edit {
    background: #4caf50;
}

.btn-save-edit:hover {
    background: #388e3c;
}

.btn-cancel-edit {
    background: #9e9e9e;
}

.btn-cancel-edit:hover {
    background: #757575;
}
.stops-list-block {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #ff9800;
}

.stops-list-block h4 {
    margin: 0 0 8px;
    color: #333;
    font-size: 14px;
}

.stops-list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stop-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.15s;
}

.stop-item:hover {
    background: #ffe0b2;
}

.stop-item .stop-num {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff9800;
    color: white;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stop-item .stop-details {
    flex: 1;
    min-width: 0;
}

.stop-item .stop-time {
    font-weight: bold;
    color: #333;
}

.stop-item .stop-duration {
    color: #777;
}

.stop-item .stop-repeat-badge {
    flex-shrink: 0;
    font-size: 11px;
    color: #e65100;
    background: #ffe0b2;
    border-radius: 10px;
    padding: 1px 6px;
}